Package org.apache.calcite.avatica.util
Class AbstractCursor.FloatAccessor
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- org.apache.calcite.avatica.util.AbstractCursor.ApproximateNumericAccessor
-
- org.apache.calcite.avatica.util.AbstractCursor.FloatAccessor
-
- All Implemented Interfaces:
Cursor.Accessor
- Enclosing class:
- AbstractCursor
private static class AbstractCursor.FloatAccessor extends AbstractCursor.ApproximateNumericAccessor
Accessor that assumes that the underlying value is aFloat; corresponds toTypes.FLOAT.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFloatAccessor(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDouble()floatgetFloat()-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor.ApproximateNumericAccessor
getBigDecimal, getBigDecimal, getLong
-
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
-
FloatAccessor
private FloatAccessor(AbstractCursor.Getter getter)
-
-
Method Detail
-
getFloat
public float getFloat() throws java.sql.SQLException- Specified by:
getFloatin interfaceCursor.Accessor- Overrides:
getFloatin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getDouble
public double getDouble() throws java.sql.SQLException- Specified by:
getDoublein interfaceCursor.Accessor- Specified by:
getDoublein classAbstractCursor.ApproximateNumericAccessor- Throws:
java.sql.SQLException
-
-