Package org.apache.calcite.avatica.util
Class AbstractCursor.ExactNumericAccessor
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- org.apache.calcite.avatica.util.AbstractCursor.ExactNumericAccessor
-
- All Implemented Interfaces:
Cursor.Accessor
- Direct Known Subclasses:
AbstractCursor.BooleanAccessor,AbstractCursor.ByteAccessor,AbstractCursor.IntAccessor,AbstractCursor.LongAccessor,AbstractCursor.ShortAccessor
- Enclosing class:
- AbstractCursor
private abstract static class AbstractCursor.ExactNumericAccessor 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 privateExactNumericAccessor(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalgetBigDecimal()java.math.BigDecimalgetBigDecimal(int scale)doublegetDouble()floatgetFloat()abstract longgetLong()-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getArray, getAsciiStream, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getInt, getNCharacterStream, getNClob, getNString, getObject, getObject, getObject, getRef, getShort, getSQLXML, getString, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
-
-
-
-
Constructor Detail
-
ExactNumericAccessor
private ExactNumericAccessor(AbstractCursor.Getter getter)
-
-
Method Detail
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int scale) throws java.sql.SQLException- Specified by:
getBigDecimalin interfaceCursor.Accessor- Overrides:
getBigDecimalin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal() throws java.sql.SQLException- Specified by:
getBigDecimalin interfaceCursor.Accessor- Overrides:
getBigDecimalin classAbstractCursor.AccessorImpl- 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 abstract long getLong() throws java.sql.SQLException- Specified by:
getLongin interfaceCursor.Accessor- Overrides:
getLongin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
-