Send feedback
Class AbstractStructReader (6.74.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.74.1 keyboard_arrow_down
public abstract class AbstractStructReader implements StructReader
Base class for assisting StructReader implementations.
This class implements the majority of the StructReader
interface, leaving subclasses
to implement core data access via the getTypeNameInternal()
methods.
AbstractStructReader
guarantees that these will only be called for non-NULL
columns of a
type appropriate for the method.
Inheritance
Object >
AbstractStructReader
Constructors
AbstractStructReader()
public AbstractStructReader ()
Methods
<T>getProtoEnum(int columnIndex, Function<Integer,ProtocolMessageEnum> method)
public T <T>getProtoEnum ( int columnIndex , Function<Integer , ProtocolMessageEnum > method )
To get the proto enum of type T
from Struct.
Returns
Type
Description
T
<T>getProtoEnum(String columnName, Function<Integer,ProtocolMessageEnum> method)
public T <T>getProtoEnum ( String columnName , Function<Integer , ProtocolMessageEnum > method )
To get the proto enum of type T
from Struct.
Returns
Type
Description
T
<T>getProtoEnumInternal(int columnIndex, Function<Integer,ProtocolMessageEnum> method)
protected T <T>getProtoEnumInternal ( int columnIndex , Function<Integer , ProtocolMessageEnum > method )
Returns
Type
Description
T
<T>getProtoEnumList(int columnIndex, Function<Integer,ProtocolMessageEnum> method)
public List<T> <T>getProtoEnumList ( int columnIndex , Function<Integer , ProtocolMessageEnum > method )
To get the proto enum of type T
from Struct.
Returns
Type
Description
List <T >
<T>getProtoEnumList(String columnName, Function<Integer,ProtocolMessageEnum> method)
public List<T> <T>getProtoEnumList ( String columnName , Function<Integer , ProtocolMessageEnum > method )
To get the proto enum list of type T
from Struct.
Returns
Type
Description
List <T >
<T>getProtoEnumListInternal(int columnIndex, Function<Integer,ProtocolMessageEnum> method)
protected List<T> <T>getProtoEnumListInternal ( int columnIndex , Function<Integer , ProtocolMessageEnum > method )
Returns
Type
Description
List <T >
<T>getProtoMessage(int columnIndex, T message)
public T <T>getProtoMessage ( int columnIndex , T message )
To get the proto message of generic type T
from Struct.
Parameters
Name
Description
columnIndex
int
message
T
Returns
Type
Description
T
<T>getProtoMessage(String columnName, T message)
public T <T>getProtoMessage ( String columnName , T message )
To get the proto message of type T
from Struct.
Parameters
Name
Description
columnName
String
message
T
Returns
Type
Description
T
<T>getProtoMessageInternal(int columnIndex, T message)
protected T <T>getProtoMessageInternal ( int columnIndex , T message )
Parameters
Name
Description
columnIndex
int
message
T
Returns
Type
Description
T
<T>getProtoMessageList(int columnIndex, T message)
public List<T> <T>getProtoMessageList ( int columnIndex , T message )
To get the proto message of generic type T
from Struct.
Parameters
Name
Description
columnIndex
int
message
T
Returns
Type
Description
List <T >
<T>getProtoMessageList(String columnName, T message)
public List<T> <T>getProtoMessageList ( String columnName , T message )
To get the proto message of type T
from Struct.
Parameters
Name
Description
columnName
String
message
T
Returns
Type
Description
List <T >
<T>getProtoMessageListInternal(int columnIndex, T message)
protected List<T> <T>getProtoMessageListInternal ( int columnIndex , T message )
Parameters
Name
Description
columnIndex
int
message
T
Returns
Type
Description
List <T >
checkNonNull(int columnIndex, Object columnNameForError)
protected void checkNonNull ( int columnIndex , Object columnNameForError )
Parameters
Name
Description
columnIndex
int
columnNameForError
Object
getBigDecimal(int columnIndex)
public BigDecimal getBigDecimal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBigDecimal(String columnName)
public BigDecimal getBigDecimal ( String columnName )
Parameter
Name
Description
columnName
String
getBigDecimalInternal(int columnIndex)
protected abstract BigDecimal getBigDecimalInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBigDecimalList(int columnIndex)
public List<BigDecimal> getBigDecimalList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBigDecimalList(String columnName)
public List<BigDecimal> getBigDecimalList ( String columnName )
Parameter
Name
Description
columnName
String
getBigDecimalListInternal(int columnIndex)
protected abstract List<BigDecimal> getBigDecimalListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBoolean(int columnIndex)
public boolean getBoolean ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBoolean(String columnName)
public boolean getBoolean ( String columnName )
Parameter
Name
Description
columnName
String
getBooleanArray(int columnIndex)
public boolean [] getBooleanArray ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBooleanArray(String columnName)
public boolean [] getBooleanArray ( String columnName )
Parameter
Name
Description
columnName
String
getBooleanArrayInternal(int columnIndex)
protected abstract boolean [] getBooleanArrayInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBooleanInternal(int columnIndex)
protected abstract boolean getBooleanInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBooleanList(int columnIndex)
public List<Boolean> getBooleanList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBooleanList(String columnName)
public List<Boolean> getBooleanList ( String columnName )
Parameter
Name
Description
columnName
String
getBooleanListInternal(int columnIndex)
protected abstract List<Boolean> getBooleanListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getBytes(int columnIndex)
public ByteArray getBytes ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
com.google.cloud.ByteArray
getBytes(String columnName)
public ByteArray getBytes ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
com.google.cloud.ByteArray
getBytesInternal(int columnIndex)
protected abstract ByteArray getBytesInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
com.google.cloud.ByteArray
getBytesList(int columnIndex)
public List<ByteArray> getBytesList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
List <com.google.cloud.ByteArray >
getBytesList(String columnName)
public List<ByteArray> getBytesList ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
List <com.google.cloud.ByteArray >
getBytesListInternal(int columnIndex)
protected abstract List<ByteArray> getBytesListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
List <com.google.cloud.ByteArray >
getColumnCount()
public int getColumnCount ()
Returns
Type
Description
int
getColumnIndex(String columnName)
public int getColumnIndex ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
int
getColumnType(int columnIndex)
public Type getColumnType ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
Type
getColumnType(String columnName)
public Type getColumnType ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
Type
getDate(int columnIndex)
public Date getDate ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
com.google.cloud.Date
getDate(String columnName)
public Date getDate ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
com.google.cloud.Date
getDateInternal(int columnIndex)
protected abstract Date getDateInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
com.google.cloud.Date
getDateList(int columnIndex)
public List<Date> getDateList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
List <com.google.cloud.Date >
getDateList(String columnName)
public List<Date> getDateList ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
List <com.google.cloud.Date >
getDateListInternal(int columnIndex)
protected abstract List<Date> getDateListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
List <com.google.cloud.Date >
getDouble(int columnIndex)
public double getDouble ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
double
getDouble(String columnName)
public double getDouble ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
double
getDoubleArray(int columnIndex)
public double [] getDoubleArray ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
double []
getDoubleArray(String columnName)
public double [] getDoubleArray ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
double []
getDoubleArrayInternal(int columnIndex)
protected abstract double [] getDoubleArrayInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
double []
getDoubleInternal(int columnIndex)
protected abstract double getDoubleInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
double
getDoubleList(int columnIndex)
public List<Double> getDoubleList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getDoubleList(String columnName)
public List<Double> getDoubleList ( String columnName )
Parameter
Name
Description
columnName
String
getDoubleListInternal(int columnIndex)
protected abstract List<Double> getDoubleListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getFloat(int columnIndex)
public float getFloat ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
float
getFloat(String columnName)
public float getFloat ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
float
getFloatArray(int columnIndex)
public float [] getFloatArray ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
float []
getFloatArray(String columnName)
public float [] getFloatArray ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
float []
getFloatArrayInternal(int columnIndex)
protected float [] getFloatArrayInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
float []
getFloatInternal(int columnIndex)
protected float getFloatInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
float
getFloatList(int columnIndex)
public List<Float> getFloatList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getFloatList(String columnName)
public List<Float> getFloatList ( String columnName )
Parameter
Name
Description
columnName
String
getFloatListInternal(int columnIndex)
protected List<Float> getFloatListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getJson(int columnIndex)
public String getJson ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
String
getJson(String columnName)
public String getJson ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
String
getJsonInternal(int columnIndex)
protected String getJsonInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
String
getJsonList(int columnIndex)
public List<String> getJsonList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getJsonList(String columnName)
public List<String> getJsonList ( String columnName )
Parameter
Name
Description
columnName
String
getJsonListInternal(int columnIndex)
protected List<String> getJsonListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getLong(int columnIndex)
public long getLong ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
long
getLong(String columnName)
public long getLong ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
long
getLongArray(int columnIndex)
public long [] getLongArray ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
long []
getLongArray(String columnName)
public long [] getLongArray ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
long []
getLongArrayInternal(int columnIndex)
protected abstract long [] getLongArrayInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
long []
getLongInternal(int columnIndex)
protected abstract long getLongInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
long
getLongList(int columnIndex)
public List<Long> getLongList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getLongList(String columnName)
public List<Long> getLongList ( String columnName )
Parameter
Name
Description
columnName
String
getLongListInternal(int columnIndex)
protected abstract List<Long> getLongListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getPgJsonb(int columnIndex)
public String getPgJsonb ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
String
getPgJsonb(String columnName)
public String getPgJsonb ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
String
getPgJsonbInternal(int columnIndex)
protected String getPgJsonbInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
String
getPgJsonbList(int columnIndex)
public List<String> getPgJsonbList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getPgJsonbList(String columnName)
public List<String> getPgJsonbList ( String columnName )
Parameter
Name
Description
columnName
String
getPgJsonbListInternal(int columnIndex)
protected List<String> getPgJsonbListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getString(int columnIndex)
public String getString ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
String
getString(String columnName)
public String getString ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
String
getStringInternal(int columnIndex)
protected abstract String getStringInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
String
getStringList(int columnIndex)
public List<String> getStringList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getStringList(String columnName)
public List<String> getStringList ( String columnName )
Parameter
Name
Description
columnName
String
getStringListInternal(int columnIndex)
protected abstract List<String> getStringListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getStructList(int columnIndex)
public List<Struct> getStructList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getStructList(String columnName)
public List<Struct> getStructList ( String columnName )
Parameter
Name
Description
columnName
String
getStructListInternal(int columnIndex)
protected abstract List<Struct> getStructListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
getTimestamp(int columnIndex)
public Timestamp getTimestamp ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
com.google.cloud.Timestamp
getTimestamp(String columnName)
public Timestamp getTimestamp ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
com.google.cloud.Timestamp
getTimestampInternal(int columnIndex)
protected abstract Timestamp getTimestampInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
com.google.cloud.Timestamp
getTimestampList(int columnIndex)
public List<Timestamp> getTimestampList ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
List <com.google.cloud.Timestamp >
getTimestampList(String columnName)
public List<Timestamp> getTimestampList ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
List <com.google.cloud.Timestamp >
getTimestampListInternal(int columnIndex)
protected abstract List<Timestamp> getTimestampListInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
List <com.google.cloud.Timestamp >
getValue(int columnIndex)
public Value getValue ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
Value
getValue(String columnName)
public Value getValue ( String columnName )
Parameter
Name
Description
columnName
String
Returns
Type
Description
Value
getValueInternal(int columnIndex)
protected Value getValueInternal ( int columnIndex )
Parameter
Name
Description
columnIndex
int
Returns
Type
Description
Value
isNull(String columnName)
public boolean isNull ( String columnName )
Parameter
Name
Description
columnName
String
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]