Class AbstractArrowFlightJdbcUnionVectorAccessor
java.lang.Object
org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
org.apache.arrow.driver.jdbc.accessor.impl.complex.AbstractArrowFlightJdbcUnionVectorAccessor
- All Implemented Interfaces:
org.apache.calcite.avatica.util.Cursor.Accessor
- Direct Known Subclasses:
ArrowFlightJdbcDenseUnionVectorAccessor
,ArrowFlightJdbcUnionVectorAccessor
Base accessor for
UnionVector
and DenseUnionVector
.-
Field Summary
Fields inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
wasNull, wasNullConsumer
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractArrowFlightJdbcUnionVectorAccessor
(IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ArrowFlightJdbcAccessor
createAccessorForVector
(ValueVector vector) protected ArrowFlightJdbcAccessor
Returns an accessor for UnionVector child vector on current row.getArray()
getBigDecimal
(int i) getBlob()
boolean
byte
getByte()
byte[]
getBytes()
getClob()
protected abstract byte
double
float
getFloat()
int
getInt()
long
getLong()
getNClob()
<T> T
Class<?>
getRef()
short
getShort()
getTimestamp
(Calendar calendar) getURL()
protected abstract ValueVector
getVectorByTypeId
(byte typeId) boolean
wasNull()
Methods inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
getCurrentRow
-
Constructor Details
-
AbstractArrowFlightJdbcUnionVectorAccessor
protected AbstractArrowFlightJdbcUnionVectorAccessor(IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull)
-
-
Method Details
-
createAccessorForVector
-
getCurrentTypeId
protected abstract byte getCurrentTypeId() -
getVectorByTypeId
-
getAccessor
Returns an accessor for UnionVector child vector on current row.- Returns:
- ArrowFlightJdbcAccessor for child vector on current row.
-
getObjectClass
- Specified by:
getObjectClass
in classArrowFlightJdbcAccessor
-
wasNull
public boolean wasNull()- Specified by:
wasNull
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
wasNull
in classArrowFlightJdbcAccessor
-
getString
- Specified by:
getString
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getString
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getBoolean
- Specified by:
getBoolean
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBoolean
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getByte
- Specified by:
getByte
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getByte
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getShort
- Specified by:
getShort
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getShort
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getInt
- Specified by:
getInt
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getInt
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getLong
- Specified by:
getLong
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getLong
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getFloat
- Specified by:
getFloat
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getFloat
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getDouble
- Specified by:
getDouble
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getDouble
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBigDecimal
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBigDecimal
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getBytes
- Specified by:
getBytes
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBytes
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStream
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getAsciiStream
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getUnicodeStream
- Specified by:
getUnicodeStream
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getUnicodeStream
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBinaryStream
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getObject
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getCharacterStream
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getObject
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getRef
- Specified by:
getRef
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getRef
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getBlob
- Specified by:
getBlob
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBlob
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getClob
- Specified by:
getClob
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getClob
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getArray
- Specified by:
getArray
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getArray
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getStruct
- Specified by:
getStruct
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getStruct
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getDate
- Specified by:
getDate
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getDate
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getTime
- Specified by:
getTime
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getTime
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestamp
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getTimestamp
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getURL
- Specified by:
getURL
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getURL
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getNClob
- Specified by:
getNClob
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getNClob
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXML
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getSQLXML
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getNString
- Specified by:
getNString
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getNString
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStream
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getNCharacterStream
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getObject
in classArrowFlightJdbcAccessor
- Throws:
SQLException
-