Modifier and Type | Method and Description |
---|---|
DataType<?> |
dataType(int fieldIndex)
Get the data type for a given field index.
|
DataType<?> |
dataType(java.lang.String fieldName)
Get the data type for a given field name.
|
DataType<?>[] |
dataTypes()
Get an array of data types for this record type.
|
<T> Field<T> |
field(Field<T> field)
Get a specific field from this record type.
|
Field<?> |
field(int fieldIndex)
Get a specific field from this record type.
|
<T> Field<T> |
field(int fieldIndex,
java.lang.Class<T> type)
Get a specific field from this record type coerced to
type . |
<T> Field<T> |
field(int fieldIndex,
DataType<T> dataType)
Get a specific field from this record type coerced to
dataType . |
Field<?> |
field(java.lang.String fieldName)
Get a specific field from this record type.
|
<T> Field<T> |
field(java.lang.String fieldName,
java.lang.Class<T> type)
Get a specific field from this record type coerced to
type . |
<T> Field<T> |
field(java.lang.String fieldName,
DataType<T> dataType)
Get a specific field from this record type coerced to
dataType . |
Field<?>[] |
fields()
Get all fields from this record type.
|
Field<?>[] |
fields(Field<?>... fields)
Get all fields from this record type, providing some fields.
|
Field<?>[] |
fields(int... fieldIndexes)
Get all fields from this record type, providing some field indexes.
|
Field<?>[] |
fields(java.lang.String... fieldNames)
Get all fields from this record type, providing some field names.
|
int |
indexOf(Field<?> field)
Get a field's index from this record type.
|
int |
indexOf(java.lang.String fieldName)
Get a field's index from this record type.
|
int |
size()
Get the degree of this record type.
|
java.lang.Class<?> |
type(int fieldIndex)
Get the type for a given field index.
|
java.lang.Class<?> |
type(java.lang.String fieldName)
Get the type for a given field name.
|
java.lang.Class<?>[] |
types()
Get an array of types for this record type.
|
int size()
<T> Field<T> field(Field<T> field)
Usually, this will return the field itself. However, if this is a row type from an aliased table, the field will be aliased accordingly.
T
- The generic field typefield
- The field to fetchField<?> field(java.lang.String fieldName)
fieldName
- The field to fetch<T> Field<T> field(java.lang.String fieldName, java.lang.Class<T> type)
type
.fieldName
- The field to fetchtype
- The type to coerce the resulting field to<T> Field<T> field(java.lang.String fieldName, DataType<T> dataType)
dataType
.fieldName
- The field to fetchdataType
- The data type to coerce the resulting field toField<?> field(int fieldIndex)
fieldIndex
- The field's index of the field to fetch<T> Field<T> field(int fieldIndex, java.lang.Class<T> type)
type
.fieldIndex
- The field's index of the field to fetchtype
- The type to coerce the resulting field to<T> Field<T> field(int fieldIndex, DataType<T> dataType)
dataType
.fieldIndex
- The field's index of the field to fetchdataType
- The data type to coerce the resulting field toField<?>[] fields()
Field<?>[] fields(Field<?>... fields)
field(Field)
Field<?>[] fields(java.lang.String... fieldNames)
field(String)
Field<?>[] fields(int... fieldIndexes)
field(int)
int indexOf(Field<?> field)
field
- The field to look for-1
if the field is not
contained in this Row
int indexOf(java.lang.String fieldName)
fieldName
- The field name to look for-1
if the field is not
contained in this Row
java.lang.Class<?>[] types()
Entries in the resulting array correspond to Field.getType()
for
the corresponding Field
in fields()
java.lang.Class<?> type(int fieldIndex)
fieldIndex
- The field's index of the field's type to fetchjava.lang.Class<?> type(java.lang.String fieldName)
fieldName
- The field's name of the field's type to fetchDataType<?>[] dataTypes()
Entries in the resulting array correspond to Field.getDataType()
for the corresponding Field
in fields()
DataType<?> dataType(int fieldIndex)
fieldIndex
- The field's index of the field's data type to fetchDataType<?> dataType(java.lang.String fieldName)
fieldName
- The field's name of the field's data type to fetchCopyright © 2015. All Rights Reserved.