Class ArrowFlightJdbcUnionVectorAccessor
java.lang.Object
org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
org.apache.arrow.driver.jdbc.accessor.impl.complex.AbstractArrowFlightJdbcUnionVectorAccessor
org.apache.arrow.driver.jdbc.accessor.impl.complex.ArrowFlightJdbcUnionVectorAccessor
- All Implemented Interfaces:
org.apache.calcite.avatica.util.Cursor.Accessor
Accessor for the Arrow type
UnionVector
.-
Field Summary
Fields inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
wasNull, wasNullConsumer
-
Constructor Summary
ConstructorDescriptionArrowFlightJdbcUnionVectorAccessor
(UnionVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aUnionVector
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ArrowFlightJdbcAccessor
createAccessorForVector
(ValueVector vector) protected byte
protected ValueVector
getVectorByTypeId
(byte typeId) Methods inherited from class org.apache.arrow.driver.jdbc.accessor.impl.complex.AbstractArrowFlightJdbcUnionVectorAccessor
getAccessor, getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDouble, getFloat, getInt, getLong, getNCharacterStream, getNClob, getNString, getObject, getObject, getObject, getObjectClass, getRef, getShort, getSQLXML, getString, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
Methods inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
getCurrentRow
-
Constructor Details
-
ArrowFlightJdbcUnionVectorAccessor
public ArrowFlightJdbcUnionVectorAccessor(UnionVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aUnionVector
.- Parameters:
vector
- an instance of a UnionVector.currentRowSupplier
- the supplier to track the rows.setCursorWasNull
- the consumer to set if value was null.
-
-
Method Details
-
createAccessorForVector
- Specified by:
createAccessorForVector
in classAbstractArrowFlightJdbcUnionVectorAccessor
-
getCurrentTypeId
protected byte getCurrentTypeId()- Specified by:
getCurrentTypeId
in classAbstractArrowFlightJdbcUnionVectorAccessor
-
getVectorByTypeId
- Specified by:
getVectorByTypeId
in classAbstractArrowFlightJdbcUnionVectorAccessor
-