Package org.apache.calcite.avatica.util
Class AbstractCursor.ByteAccessor
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- org.apache.calcite.avatica.util.AbstractCursor.ExactNumericAccessor
-
- org.apache.calcite.avatica.util.AbstractCursor.ByteAccessor
-
- All Implemented Interfaces:
Cursor.Accessor
- Enclosing class:
- AbstractCursor
private static class AbstractCursor.ByteAccessor extends AbstractCursor.ExactNumericAccessor
Accessor that assumes that the underlying value is aByte; corresponds toTypes.TINYINT.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateByteAccessor(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetByte()longgetLong()-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor.ExactNumericAccessor
getBigDecimal, getBigDecimal, getDouble, getFloat
-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getArray, getAsciiStream, getBinaryStream, getBlob, getBoolean, getBytes, getCharacterStream, getClob, getDate, getInt, getNCharacterStream, getNClob, getNString, getObject, getObject, getObject, getRef, getShort, getSQLXML, getString, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
-
-
-
-
Constructor Detail
-
ByteAccessor
private ByteAccessor(AbstractCursor.Getter getter)
-
-
Method Detail
-
getByte
public byte getByte() throws java.sql.SQLException- Specified by:
getBytein interfaceCursor.Accessor- Overrides:
getBytein classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getLong
public long getLong() throws java.sql.SQLException- Specified by:
getLongin interfaceCursor.Accessor- Specified by:
getLongin classAbstractCursor.ExactNumericAccessor- Throws:
java.sql.SQLException
-
-