@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Type extends Object implements Serializable, Cloneable, StructuredPojo
Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
Constructor and Description |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
Type |
clone() |
boolean |
equals(Object obj) |
ColumnInfo |
getArrayColumnInfo()
Indicates if the column is an array.
|
List<ColumnInfo> |
getRowColumnInfo()
Indicates if the column is a row.
|
String |
getScalarType()
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time.
|
ColumnInfo |
getTimeSeriesMeasureValueColumnInfo()
Indicates if the column is a timeseries data type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArrayColumnInfo(ColumnInfo arrayColumnInfo)
Indicates if the column is an array.
|
void |
setRowColumnInfo(Collection<ColumnInfo> rowColumnInfo)
Indicates if the column is a row.
|
void |
setScalarType(String scalarType)
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time.
|
void |
setTimeSeriesMeasureValueColumnInfo(ColumnInfo timeSeriesMeasureValueColumnInfo)
Indicates if the column is a timeseries data type.
|
String |
toString()
Returns a string representation of this object.
|
Type |
withArrayColumnInfo(ColumnInfo arrayColumnInfo)
Indicates if the column is an array.
|
Type |
withRowColumnInfo(Collection<ColumnInfo> rowColumnInfo)
Indicates if the column is a row.
|
Type |
withRowColumnInfo(ColumnInfo... rowColumnInfo)
Indicates if the column is a row.
|
Type |
withScalarType(ScalarType scalarType)
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time.
|
Type |
withScalarType(String scalarType)
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time.
|
Type |
withTimeSeriesMeasureValueColumnInfo(ColumnInfo timeSeriesMeasureValueColumnInfo)
Indicates if the column is a timeseries data type.
|
public void setScalarType(String scalarType)
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types.
scalarType
- Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more
information, see Supported
data types.ScalarType
public String getScalarType()
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types.
ScalarType
public Type withScalarType(String scalarType)
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types.
scalarType
- Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more
information, see Supported
data types.ScalarType
public Type withScalarType(ScalarType scalarType)
Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more information, see Supported data types.
scalarType
- Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time. For more
information, see Supported
data types.ScalarType
public void setArrayColumnInfo(ColumnInfo arrayColumnInfo)
Indicates if the column is an array.
arrayColumnInfo
- Indicates if the column is an array.public ColumnInfo getArrayColumnInfo()
Indicates if the column is an array.
public Type withArrayColumnInfo(ColumnInfo arrayColumnInfo)
Indicates if the column is an array.
arrayColumnInfo
- Indicates if the column is an array.public void setTimeSeriesMeasureValueColumnInfo(ColumnInfo timeSeriesMeasureValueColumnInfo)
Indicates if the column is a timeseries data type.
timeSeriesMeasureValueColumnInfo
- Indicates if the column is a timeseries data type.public ColumnInfo getTimeSeriesMeasureValueColumnInfo()
Indicates if the column is a timeseries data type.
public Type withTimeSeriesMeasureValueColumnInfo(ColumnInfo timeSeriesMeasureValueColumnInfo)
Indicates if the column is a timeseries data type.
timeSeriesMeasureValueColumnInfo
- Indicates if the column is a timeseries data type.public List<ColumnInfo> getRowColumnInfo()
Indicates if the column is a row.
public void setRowColumnInfo(Collection<ColumnInfo> rowColumnInfo)
Indicates if the column is a row.
rowColumnInfo
- Indicates if the column is a row.public Type withRowColumnInfo(ColumnInfo... rowColumnInfo)
Indicates if the column is a row.
NOTE: This method appends the values to the existing list (if any). Use
setRowColumnInfo(java.util.Collection)
or withRowColumnInfo(java.util.Collection)
if you want
to override the existing values.
rowColumnInfo
- Indicates if the column is a row.public Type withRowColumnInfo(Collection<ColumnInfo> rowColumnInfo)
Indicates if the column is a row.
rowColumnInfo
- Indicates if the column is a row.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.