Class QueryJDBCAccessor
- java.lang.Object
-
- com.salesforce.datacloud.jdbc.core.accessor.QueryJDBCAccessor
-
- All Implemented Interfaces:
org.apache.calcite.avatica.util.Cursor.Accessor
- Direct Known Subclasses:
BaseIntVectorAccessor,BaseListVectorAccessor,BinaryVectorAccessor,BooleanVectorAccessor,DateVectorAccessor,DecimalVectorAccessor,DoubleVectorAccessor,TimeStampVectorAccessor,TimeVectorAccessor,VarCharVectorAccessor
public abstract class QueryJDBCAccessor extends Object implements org.apache.calcite.avatica.util.Cursor.Accessor
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanwasNullprotected QueryJDBCAccessorFactory.WasNullConsumerwasNullConsumer
-
Constructor Summary
Constructors Modifier Constructor Description protectedQueryJDBCAccessor(IntSupplier currentRowSupplier, QueryJDBCAccessorFactory.WasNullConsumer wasNullConsumer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ArraygetArray()InputStreamgetAsciiStream()BigDecimalgetBigDecimal()BigDecimalgetBigDecimal(int i)InputStreamgetBinaryStream()BlobgetBlob()booleangetBoolean()bytegetByte()byte[]getBytes()ReadergetCharacterStream()ClobgetClob()protected intgetCurrentRow()DategetDate(Calendar calendar)doublegetDouble()floatgetFloat()intgetInt()longgetLong()ReadergetNCharacterStream()NClobgetNClob()StringgetNString()ObjectgetObject()<T> TgetObject(Class<T> aClass)ObjectgetObject(Map<String,Class<?>> map)abstract Class<?>getObjectClass()RefgetRef()shortgetShort()SQLXMLgetSQLXML()StringgetString()StructgetStruct()TimegetTime(Calendar calendar)TimestampgetTimestamp(Calendar calendar)InputStreamgetUnicodeStream()URLgetURL()booleanwasNull()
-
-
-
Field Detail
-
wasNull
protected boolean wasNull
-
wasNullConsumer
protected QueryJDBCAccessorFactory.WasNullConsumer wasNullConsumer
-
-
Constructor Detail
-
QueryJDBCAccessor
protected QueryJDBCAccessor(IntSupplier currentRowSupplier, QueryJDBCAccessorFactory.WasNullConsumer wasNullConsumer)
-
-
Method Detail
-
getCurrentRow
protected int getCurrentRow()
-
getObjectClass
public abstract Class<?> getObjectClass()
-
wasNull
public boolean wasNull()
- Specified by:
wasNullin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
-
getString
public String getString() throws SQLException
- Specified by:
getStringin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getBoolean
public boolean getBoolean() throws SQLException- Specified by:
getBooleanin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getByte
public byte getByte() throws SQLException- Specified by:
getBytein interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getShort
public short getShort() throws SQLException- Specified by:
getShortin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getInt
public int getInt() throws SQLException- Specified by:
getIntin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getLong
public long getLong() throws SQLException- Specified by:
getLongin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getFloat
public float getFloat() throws SQLException- Specified by:
getFloatin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getDouble
public double getDouble() throws SQLException- Specified by:
getDoublein interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal() throws SQLException
- Specified by:
getBigDecimalin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int i) throws SQLException
- Specified by:
getBigDecimalin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getBytes
public byte[] getBytes() throws SQLException- Specified by:
getBytesin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- Specified by:
getAsciiStreamin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getUnicodeStream
public InputStream getUnicodeStream() throws SQLException
- Specified by:
getUnicodeStreamin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream() throws SQLException
- Specified by:
getBinaryStreamin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getObject
public Object getObject() throws SQLException
- Specified by:
getObjectin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Specified by:
getCharacterStreamin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getObject
public Object getObject(Map<String,Class<?>> map) throws SQLException
- Specified by:
getObjectin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getRef
public Ref getRef() throws SQLException
- Specified by:
getRefin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getBlob
public Blob getBlob() throws SQLException
- Specified by:
getBlobin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getClob
public Clob getClob() throws SQLException
- Specified by:
getClobin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getArray
public Array getArray() throws SQLException
- Specified by:
getArrayin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getStruct
public Struct getStruct() throws SQLException
- Specified by:
getStructin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getDate
public Date getDate(Calendar calendar) throws SQLException
- Specified by:
getDatein interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getTime
public Time getTime(Calendar calendar) throws SQLException
- Specified by:
getTimein interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(Calendar calendar) throws SQLException
- Specified by:
getTimestampin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getURL
public URL getURL() throws SQLException
- Specified by:
getURLin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getNClob
public NClob getNClob() throws SQLException
- Specified by:
getNClobin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getSQLXML
public SQLXML getSQLXML() throws SQLException
- Specified by:
getSQLXMLin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getNString
public String getNString() throws SQLException
- Specified by:
getNStringin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getNCharacterStream
public Reader getNCharacterStream() throws SQLException
- Specified by:
getNCharacterStreamin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor- Throws:
SQLException
-
getObject
public <T> T getObject(Class<T> aClass)
- Specified by:
getObjectin interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
-
-