@Experimental public abstract class RowType extends java.lang.Object implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RowType.Field
Field of a row.
|
Constructor and Description |
---|
RowType() |
Modifier and Type | Method and Description |
---|---|
static RowType |
fromNamesAndCoders(java.util.List<java.lang.String> fieldNames,
java.util.List<Coder> fieldCoders) |
Coder |
getFieldCoder(int index)
Return the field coder for
index . |
int |
getFieldCount()
Return the count of fields.
|
java.lang.String |
getFieldName(int index)
Return the name of field by index.
|
java.util.List<java.lang.String> |
getFieldNames()
Returns an immutable list of field names.
|
RowCoder |
getRowCoder()
Return the coder for
Row , which wraps fieldCoders() for each field. |
int |
indexOf(java.lang.String fieldName)
Find the index of a given field.
|
static RowType.Field |
newField(java.lang.String name,
Coder coder)
Creates a new
RowType.Field with specified name and coder. |
static java.util.stream.Collector<RowType.Field,java.util.List<RowType.Field>,RowType> |
toRowType()
Collects a stream of
RowType.Field s into a RowType . |
public static java.util.stream.Collector<RowType.Field,java.util.List<RowType.Field>,RowType> toRowType()
RowType.Field
s into a RowType
.public static RowType.Field newField(java.lang.String name, Coder coder)
RowType.Field
with specified name and coder.public static RowType fromNamesAndCoders(java.util.List<java.lang.String> fieldNames, java.util.List<Coder> fieldCoders)
public RowCoder getRowCoder()
Row
, which wraps fieldCoders()
for each field.public Coder getFieldCoder(int index)
index
.public java.util.List<java.lang.String> getFieldNames()
public java.lang.String getFieldName(int index)
public int indexOf(java.lang.String fieldName)
public int getFieldCount()