Class BigQueryBaseResultSet (1.2.0)

public abstract class BigQueryBaseResultSet extends BigQueryNoOpsResultSet implements BigQueryResultSet

Inheritance

Object > com.google.cloud.bigquery.jdbc.BigQueryNoOpsResultSet > BigQueryBaseResultSet

Implements

BigQueryResultSet

Constructors

BigQueryBaseResultSet(BigQuery bigQuery, BigQueryStatement statement, Schema schema, boolean isNested)

protected BigQueryBaseResultSet(BigQuery bigQuery, BigQueryStatement statement, Schema schema, boolean isNested)
Parameters
Name Description
bigQuery com.google.cloud.bigquery.BigQuery
statement BigQueryStatement
schema com.google.cloud.bigquery.Schema
isNested boolean

BigQueryBaseResultSet(BigQuery bigQuery, BigQueryStatement statement, Schema schema, boolean isNested, Job job)

protected BigQueryBaseResultSet(BigQuery bigQuery, BigQueryStatement statement, Schema schema, boolean isNested, Job job)
Parameters
Name Description
bigQuery com.google.cloud.bigquery.BigQuery
statement BigQueryStatement
schema com.google.cloud.bigquery.Schema
isNested boolean
job com.google.cloud.bigquery.Job

Fields

LOG

protected final BigQueryJdbcResultSetLogger LOG
Field Value
Type Description
BigQueryJdbcResultSetLogger

bigQueryTypeCoercer

protected final BigQueryTypeCoercer bigQueryTypeCoercer
Field Value
Type Description
com.google.cloud.bigquery.jdbc.BigQueryTypeCoercer

isClosed

protected boolean isClosed
Field Value
Type Description
boolean

isNested

protected final boolean isNested
Field Value
Type Description
boolean

originalSpanContext

protected final SpanContext originalSpanContext
Field Value
Type Description
io.opentelemetry.api.trace.SpanContext

schema

protected final Schema schema
Field Value
Type Description
com.google.cloud.bigquery.Schema

schemaFieldList

protected final FieldList schemaFieldList
Field Value
Type Description
com.google.cloud.bigquery.FieldList

statement

protected final BigQueryStatement statement
Field Value
Type Description
BigQueryStatement

wasNull

protected boolean wasNull
Field Value
Type Description
boolean

Methods

<T>getObject(int columnIndex, Class<T> type)

public T <T>getObject(int columnIndex, Class<T> type)
Parameters
Name Description
columnIndex int
type Class<T>
Returns
Type Description
T
Exceptions
Type Description
SQLException

<T>getObject(String columnLabel, Class<T> type)

public T <T>getObject(String columnLabel, Class<T> type)
Parameters
Name Description
columnLabel String
type Class<T>
Returns
Type Description
T
Exceptions
Type Description
SQLException

<T>unwrap(Class<T> iface)

public T <T>unwrap(Class<T> iface)
Parameter
Name Description
iface Class<T>
Returns
Type Description
T
Exceptions
Type Description
SQLException

clearWarnings()

public void clearWarnings()
Exceptions
Type Description
SQLException

close()

public void close()

createCoercionException(int columnIndex, Class<?> targetClass, Exception cause)

protected SQLException createCoercionException(int columnIndex, Class<?> targetClass, Exception cause)
Parameters
Name Description
columnIndex int
targetClass Class<?>
cause Exception
Returns
Type Description
SQLException
Exceptions
Type Description
SQLException

findColumn(String columnLabel)

public int findColumn(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
int
Exceptions
Type Description
SQLException

getArray(int columnIndex)

public Array getArray(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Array
Exceptions
Type Description
SQLException

getArray(String columnLabel)

public Array getArray(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Array
Exceptions
Type Description
SQLException

getAsciiStream(int columnIndex)

public InputStream getAsciiStream(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
InputStream
Exceptions
Type Description
SQLException

getAsciiStream(String columnLabel)

public InputStream getAsciiStream(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
InputStream
Exceptions
Type Description
SQLException

getBigDecimal(int columnIndex)

public BigDecimal getBigDecimal(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
BigDecimal
Exceptions
Type Description
SQLException

getBigDecimal(int columnIndex, int scale) (deprecated)

public BigDecimal getBigDecimal(int columnIndex, int scale)
Parameters
Name Description
columnIndex int
scale int
Returns
Type Description
BigDecimal
Exceptions
Type Description
SQLException

getBigDecimal(String columnLabel)

public BigDecimal getBigDecimal(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
BigDecimal
Exceptions
Type Description
SQLException

getBigDecimal(String columnLabel, int scale) (deprecated)

public BigDecimal getBigDecimal(String columnLabel, int scale)
Parameters
Name Description
columnLabel String
scale int
Returns
Type Description
BigDecimal
Exceptions
Type Description
SQLException

getBinaryStream(int columnIndex)

public InputStream getBinaryStream(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
InputStream
Exceptions
Type Description
SQLException

getBinaryStream(String columnLabel)

public InputStream getBinaryStream(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
InputStream
Exceptions
Type Description
SQLException

getBlob(int columnIndex)

public Blob getBlob(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Blob
Exceptions
Type Description
SQLException

getBlob(String columnLabel)

public Blob getBlob(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Blob
Exceptions
Type Description
SQLException

getBoolean(int columnIndex)

public boolean getBoolean(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
boolean
Exceptions
Type Description
SQLException

getBoolean(String columnLabel)

public boolean getBoolean(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
boolean
Exceptions
Type Description
SQLException

getByte(int columnIndex)

public byte getByte(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
byte
Exceptions
Type Description
SQLException

getByte(String columnLabel)

public byte getByte(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
byte
Exceptions
Type Description
SQLException

getBytes(int columnIndex)

public byte[] getBytes(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
byte[]
Exceptions
Type Description
SQLException

getBytes(String columnLabel)

public byte[] getBytes(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
byte[]
Exceptions
Type Description
SQLException

getCharacterStream(int columnIndex)

public Reader getCharacterStream(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Reader
Exceptions
Type Description
SQLException

getCharacterStream(String columnLabel)

public Reader getCharacterStream(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Reader
Exceptions
Type Description
SQLException

getClob(int columnIndex)

public Clob getClob(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Clob
Exceptions
Type Description
SQLException

getClob(String columnLabel)

public Clob getClob(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Clob
Exceptions
Type Description
SQLException

getColumnIndex(String columnLabel)

protected int getColumnIndex(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
int
Exceptions
Type Description
SQLException

getConcurrency()

public int getConcurrency()
Returns
Type Description
int
Exceptions
Type Description
SQLException

getDate(int columnIndex)

public Date getDate(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Date
Exceptions
Type Description
SQLException

getDate(int columnIndex, Calendar cal)

public Date getDate(int columnIndex, Calendar cal)
Parameters
Name Description
columnIndex int
cal Calendar
Returns
Type Description
Date
Exceptions
Type Description
SQLException

getDate(String columnLabel)

public Date getDate(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Date
Exceptions
Type Description
SQLException

getDate(String columnLabel, Calendar cal)

public Date getDate(String columnLabel, Calendar cal)
Parameters
Name Description
columnLabel String
cal Calendar
Returns
Type Description
Date
Exceptions
Type Description
SQLException

getDouble(int columnIndex)

public double getDouble(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
double
Exceptions
Type Description
SQLException

getDouble(String columnLabel)

public double getDouble(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
double
Exceptions
Type Description
SQLException

getFetchDirection()

public int getFetchDirection()
Returns
Type Description
int
Exceptions
Type Description
SQLException

getFetchSize()

public int getFetchSize()
Returns
Type Description
int
Exceptions
Type Description
SQLException

getFloat(int columnIndex)

public float getFloat(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
float
Exceptions
Type Description
SQLException

getFloat(String columnLabel)

public float getFloat(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
float
Exceptions
Type Description
SQLException

getHoldability()

public int getHoldability()
Returns
Type Description
int
Exceptions
Type Description
SQLException

getInt(int columnIndex)

public int getInt(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
int
Exceptions
Type Description
SQLException

getInt(String columnLabel)

public int getInt(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
int
Exceptions
Type Description
SQLException

getJob()

public Job getJob()
Returns
Type Description
com.google.cloud.bigquery.Job

getJobId()

public JobId getJobId()
Returns
Type Description
com.google.cloud.bigquery.JobId

getLong(int columnIndex)

public long getLong(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
long
Exceptions
Type Description
SQLException

getLong(String columnLabel)

public long getLong(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
long
Exceptions
Type Description
SQLException

getMetaData()

public ResultSetMetaData getMetaData()
Returns
Type Description
ResultSetMetaData
Exceptions
Type Description
SQLException

getObject(int columnIndex)

public abstract Object getObject(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Object
Exceptions
Type Description
SQLException

getObject(String columnLabel)

public Object getObject(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Object
Exceptions
Type Description
SQLException

getQueryId()

public String getQueryId()
Returns
Type Description
String

getQueryStatistics()

public JobStatistics.QueryStatistics getQueryStatistics()
Returns
Type Description
com.google.cloud.bigquery.JobStatistics.QueryStatistics

getShort(int columnIndex)

public short getShort(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
short
Exceptions
Type Description
SQLException

getShort(String columnLabel)

public short getShort(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
short
Exceptions
Type Description
SQLException

getStatement()

public Statement getStatement()
Returns
Type Description
Statement
Exceptions
Type Description
SQLException

getString(int columnIndex)

public String getString(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
String
Exceptions
Type Description
SQLException

getString(String columnLabel)

public String getString(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
String
Exceptions
Type Description
SQLException

getTime(int columnIndex)

public Time getTime(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Time
Exceptions
Type Description
SQLException

getTime(int columnIndex, Calendar cal)

public Time getTime(int columnIndex, Calendar cal)
Parameters
Name Description
columnIndex int
cal Calendar
Returns
Type Description
Time
Exceptions
Type Description
SQLException

getTime(String columnLabel)

public Time getTime(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Time
Exceptions
Type Description
SQLException

getTime(String columnLabel, Calendar cal)

public Time getTime(String columnLabel, Calendar cal)
Parameters
Name Description
columnLabel String
cal Calendar
Returns
Type Description
Time
Exceptions
Type Description
SQLException

getTimestamp(int columnIndex)

public Timestamp getTimestamp(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
Timestamp
Exceptions
Type Description
SQLException

getTimestamp(int columnIndex, Calendar cal)

public Timestamp getTimestamp(int columnIndex, Calendar cal)
Parameters
Name Description
columnIndex int
cal Calendar
Returns
Type Description
Timestamp
Exceptions
Type Description
SQLException

getTimestamp(String columnLabel)

public Timestamp getTimestamp(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
Timestamp
Exceptions
Type Description
SQLException

getTimestamp(String columnLabel, Calendar cal)

public Timestamp getTimestamp(String columnLabel, Calendar cal)
Parameters
Name Description
columnLabel String
cal Calendar
Returns
Type Description
Timestamp
Exceptions
Type Description
SQLException

getType()

public int getType()
Returns
Type Description
int
Exceptions
Type Description
SQLException

getUnicodeStream(int columnIndex) (deprecated)

public InputStream getUnicodeStream(int columnIndex)
Parameter
Name Description
columnIndex int
Returns
Type Description
InputStream
Exceptions
Type Description
SQLException

getUnicodeStream(String columnLabel) (deprecated)

public InputStream getUnicodeStream(String columnLabel)
Parameter
Name Description
columnLabel String
Returns
Type Description
InputStream
Exceptions
Type Description
SQLException

getWarnings()

public SQLWarning getWarnings()
Returns
Type Description
SQLWarning
Exceptions
Type Description
SQLException

isClosed()

public boolean isClosed()
Returns
Type Description
boolean

isWrapperFor(Class<?> iface)

public boolean isWrapperFor(Class<?> iface)
Parameter
Name Description
iface Class<?>
Returns
Type Description
boolean
Exceptions
Type Description
SQLException

logAndCreateException(String message)

protected SQLException logAndCreateException(String message)
Parameter
Name Description
message String
Returns
Type Description
SQLException

logAndCreateException(String message, Throwable cause)

protected SQLException logAndCreateException(String message, Throwable cause)
Parameters
Name Description
message String
cause Throwable
Returns
Type Description
SQLException

logAndCreateException(SQLException ex)

protected SQLException logAndCreateException(SQLException ex)
Parameter
Name Description
ex SQLException
Returns
Type Description
SQLException

makeOriginalContextCurrent()

protected Scope makeOriginalContextCurrent()
Returns
Type Description
io.opentelemetry.context.Scope

setFetchDirection(int direction)

public void setFetchDirection(int direction)
Parameter
Name Description
direction int
Exceptions
Type Description
SQLException

setFetchSize(int rows)

public void setFetchSize(int rows)
Parameter
Name Description
rows int
Exceptions
Type Description
SQLException

setJob(Job job)

public void setJob(Job job)
Parameter
Name Description
job com.google.cloud.bigquery.Job

setJobId(JobId jobId)

public void setJobId(JobId jobId)
Parameter
Name Description
jobId com.google.cloud.bigquery.JobId

setQueryId(String queryId)

public void setQueryId(String queryId)
Parameter
Name Description
queryId String

setWasNull(Object val)

protected void setWasNull(Object val)
Parameter
Name Description
val Object

wasNull()

public boolean wasNull()
Returns
Type Description
boolean
Exceptions
Type Description
SQLException