Package org.apache.calcite.avatica.util
Class AbstractCursor.IntAccessor
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- org.apache.calcite.avatica.util.AbstractCursor.ExactNumericAccessor
-
- org.apache.calcite.avatica.util.AbstractCursor.IntAccessor
-
- All Implemented Interfaces:
Cursor.Accessor
- Direct Known Subclasses:
AbstractCursor.IntervalYearMonthAccessor
- Enclosing class:
- AbstractCursor
private static class AbstractCursor.IntAccessor extends AbstractCursor.ExactNumericAccessor
Accessor that assumes that the underlying value is anInteger; corresponds toTypes.INTEGER.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIntAccessor(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInt()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, getByte, getBytes, getCharacterStream, getClob, getDate, getNCharacterStream, getNClob, getNString, getObject, getObject, getObject, getRef, getShort, getSQLXML, getString, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
-
-
-
-
Constructor Detail
-
IntAccessor
private IntAccessor(AbstractCursor.Getter getter)
-
-
Method Detail
-
getInt
public int getInt() throws java.sql.SQLException- Specified by:
getIntin interfaceCursor.Accessor- Overrides:
getIntin 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
-
-