Enum RowMetadata
- java.lang.Object
-
- java.lang.Enum<RowMetadata>
-
- org.apache.flink.connector.kinesis.table.RowMetadata
-
- All Implemented Interfaces:
Serializable,Comparable<RowMetadata>
@Internal public enum RowMetadata extends Enum<RowMetadata>
Internal type for enumerating available metadata.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SequenceNumberShardIdTimestamp
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.table.types.DataTypegetDataType()StringgetFieldName()static RowMetadataof(String fieldName)static RowMetadatavalueOf(String name)Returns the enum constant of this type with the specified name.static RowMetadata[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Timestamp
public static final RowMetadata Timestamp
-
SequenceNumber
public static final RowMetadata SequenceNumber
-
ShardId
public static final RowMetadata ShardId
-
-
Method Detail
-
values
public static RowMetadata[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RowMetadata c : RowMetadata.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RowMetadata valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFieldName
public String getFieldName()
-
getDataType
public org.apache.flink.table.types.DataType getDataType()
-
of
public static RowMetadata of(String fieldName)
-
-