Package org.apache.calcite.avatica.util
Class AbstractCursor.BigNumberAccessor
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- org.apache.calcite.avatica.util.AbstractCursor.BigNumberAccessor
-
- All Implemented Interfaces:
Cursor.Accessor
- Direct Known Subclasses:
AbstractCursor.BigDecimalAccessor,AbstractCursor.NumberAccessor
- Enclosing class:
- AbstractCursor
private abstract static class AbstractCursor.BigNumberAccessor extends AbstractCursor.AccessorImpl
Accessor of exact numeric values. The subclass must implement thegetLong()method.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBigNumberAccessor(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleangetBoolean()bytegetByte()doublegetDouble()floatgetFloat()intgetInt()longgetLong()protected abstract java.lang.NumbergetNumber()shortgetShort()-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBytes, getCharacterStream, getClob, getDate, getNCharacterStream, getNClob, getNString, getObject, getObject, getObject, getRef, getSQLXML, getString, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
-
-
-
-
Constructor Detail
-
BigNumberAccessor
private BigNumberAccessor(AbstractCursor.Getter getter)
-
-
Method Detail
-
getNumber
protected abstract java.lang.Number getNumber() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDouble
public double getDouble() throws java.sql.SQLException- Specified by:
getDoublein interfaceCursor.Accessor- Overrides:
getDoublein classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getFloat
public float getFloat() throws java.sql.SQLException- Specified by:
getFloatin interfaceCursor.Accessor- Overrides:
getFloatin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getLong
public long getLong() throws java.sql.SQLException- Specified by:
getLongin interfaceCursor.Accessor- Overrides:
getLongin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getInt
public int getInt() throws java.sql.SQLException- Specified by:
getIntin interfaceCursor.Accessor- Overrides:
getIntin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getShort
public short getShort() throws java.sql.SQLException- Specified by:
getShortin interfaceCursor.Accessor- Overrides:
getShortin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getByte
public byte getByte() throws java.sql.SQLException- Specified by:
getBytein interfaceCursor.Accessor- Overrides:
getBytein classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean() throws java.sql.SQLException- Specified by:
getBooleanin interfaceCursor.Accessor- Overrides:
getBooleanin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
-