Package net.snowflake.client.core
Class ArrowSqlInput
- java.lang.Object
-
- net.snowflake.client.core.BaseSqlInput
-
- net.snowflake.client.core.ArrowSqlInput
-
- All Implemented Interfaces:
SQLInput,SFSqlInput
public class ArrowSqlInput extends BaseSqlInput
-
-
Field Summary
-
Fields inherited from class net.snowflake.client.core.BaseSqlInput
converters, fields, session
-
-
Constructor Summary
Constructors Constructor Description ArrowSqlInput(Map<String,Object> input, SFBaseSession session, Converters converters, List<FieldMetadata> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getInput()BigDecimalreadBigDecimal()booleanreadBoolean()bytereadByte()byte[]readBytes()DatereadDate()doublereadDouble()floatreadFloat()intreadInt()longreadLong()ObjectreadObject()<T> TreadObject(Class<T> type)shortreadShort()StringreadString()TimereadTime()TimestampreadTimestamp(TimeZone tz)Reads the next attribute in the stream and returns it as ajava.sql.Timestampobject.booleanwasNull()-
Methods inherited from class net.snowflake.client.core.BaseSqlInput
readArray, readAsciiStream, readBinaryStream, readBlob, readCharacterStream, readClob, readNClob, readNString, readRef, readRowId, readSQLXML, readTimestamp, readURL
-
-
-
-
Constructor Detail
-
ArrowSqlInput
public ArrowSqlInput(Map<String,Object> input, SFBaseSession session, Converters converters, List<FieldMetadata> fields)
-
-
Method Detail
-
readString
public String readString() throws SQLException
- Throws:
SQLException
-
readBoolean
public boolean readBoolean() throws SQLException- Throws:
SQLException
-
readByte
public byte readByte() throws SQLException- Throws:
SQLException
-
readShort
public short readShort() throws SQLException- Throws:
SQLException
-
readInt
public int readInt() throws SQLException- Throws:
SQLException
-
readLong
public long readLong() throws SQLException- Throws:
SQLException
-
readFloat
public float readFloat() throws SQLException- Throws:
SQLException
-
readDouble
public double readDouble() throws SQLException- Throws:
SQLException
-
readBigDecimal
public BigDecimal readBigDecimal() throws SQLException
- Throws:
SQLException
-
readBytes
public byte[] readBytes() throws SQLException- Throws:
SQLException
-
readDate
public Date readDate() throws SQLException
- Throws:
SQLException
-
readTime
public Time readTime() throws SQLException
- Throws:
SQLException
-
readTimestamp
public Timestamp readTimestamp(TimeZone tz) throws SQLException
Description copied from interface:SFSqlInputReads the next attribute in the stream and returns it as ajava.sql.Timestampobject.- Parameters:
tz- timezone to consider.- Returns:
- the attribute; if the value is SQL
NULL, returnsnull - Throws:
SQLException- if a database access error occursSQLFeatureNotSupportedException- if the JDBC driver does not support this method
-
readObject
public Object readObject() throws SQLException
- Throws:
SQLException
-
readObject
public <T> T readObject(Class<T> type) throws SQLException
- Throws:
SQLException
-
wasNull
public boolean wasNull()
- Specified by:
wasNullin interfaceSQLInput- Overrides:
wasNullin classBaseSqlInput
-
-