Class BoundCheckingAccessor
java.lang.Object
org.apache.drill.exec.vector.accessor.BoundCheckingAccessor
- All Implemented Interfaces:
SqlAccessor
A decorating accessor that returns null for indices that is beyond underlying vector's capacity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimal
(int rowOffset) (Seeclass description
.)boolean
getBoolean
(int rowOffset) (Seeclass description
.)byte
getByte
(int rowOffset) (Seeclass description
.)byte[]
getBytes
(int rowOffset) (Seeclass description
.)char
getChar
(int rowOffset) (Seeclass description
.)getDate
(int rowOffset) (Seeclass description
.)double
getDouble
(int rowOffset) (Seeclass description
.)float
getFloat
(int rowOffset) (Seeclass description
.)int
getInt
(int rowOffset) (Seeclass description
.)long
getLong
(int rowOffset) (Seeclass description
.)getObject
(int rowOffset) Returns an instance sitting at the given index if exists, null otherwise.Class<?>
Reports the class returned by getObject() of this accessor.getReader
(int rowOffset) (Seeclass description
.)short
getShort
(int rowOffset) (Seeclass description
.)getStream
(int rowOffset) (Seeclass description
.)getString
(int rowOffset) (Seeclass description
.)getTime
(int rowOffset) (Seeclass description
.)getTimestamp
(int rowOffset) (Seeclass description
.)getType()
Reports the (native) type of data accessed by this accessor.boolean
isNull
(int rowOffset) Reports whether the logical value is a SQL NULL.
-
Constructor Details
-
BoundCheckingAccessor
-
-
Method Details
-
getType
Description copied from interface:SqlAccessor
Reports the (native) type of data accessed by this accessor.(Some implementations may support more than just the minimum
getType(...)
method implied by the type.- Specified by:
getType
in interfaceSqlAccessor
-
getObjectClass
Description copied from interface:SqlAccessor
Reports the class returned by getObject() of this accessor.(Is for {@link ResultSetMetaData#getColumnClassName(...)}.)
- Specified by:
getObjectClass
in interfaceSqlAccessor
-
isNull
public boolean isNull(int rowOffset) Description copied from interface:SqlAccessor
Reports whether the logical value is a SQL NULL.- Specified by:
isNull
in interfaceSqlAccessor
-
getBigDecimal
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getBigDecimal
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getBoolean
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getBoolean
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getByte
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getByte
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getBytes
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getBytes
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getDate
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getDate
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getDouble
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getDouble
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getFloat
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getFloat
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getChar
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getChar
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getInt
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getInt
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getLong
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getLong
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getShort
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getShort
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getStream
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getStream
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getReader
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getReader
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getString
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getString
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getTime
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getTime
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getTimestamp
Description copied from interface:SqlAccessor
(Seeclass description
.)- Specified by:
getTimestamp
in interfaceSqlAccessor
- Throws:
InvalidAccessException
-
getObject
Returns an instance sitting at the given index if exists, null otherwise.- Specified by:
getObject
in interfaceSqlAccessor
- Throws:
InvalidAccessException
- See Also:
-