public class EventRowTypeInfo
extends org.apache.flink.api.java.typeutils.RowTypeInfo
toRowTypeInfo()
.org.apache.flink.api.common.typeutils.CompositeType.FlatFieldDescriptor, org.apache.flink.api.common.typeutils.CompositeType.InvalidFieldReferenceException, org.apache.flink.api.common.typeutils.CompositeType.TypeComparatorBuilder<T>
Modifier and Type | Field and Description |
---|---|
static Set<String> |
DEFAULT_NON_PROJECTED_FIELDS
List of fields that should not be projected by default
when projecting a source event to a target event.
|
Constructor and Description |
---|
EventRowTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] types,
String[] fieldNames) |
EventRowTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] types,
String[] fieldNames,
Map<String,String> aliasedRowKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj) |
static EventRowTypeInfo |
create(Map<String,String> aliasedRowKey,
String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>... types) |
static EventRowTypeInfo |
create(org.apache.flink.api.java.typeutils.RowTypeInfo info) |
static EventRowTypeInfo |
create(org.apache.flink.api.java.typeutils.RowTypeInfo info,
Map<String,String> aliasedRowKey) |
static EventRowTypeInfo |
create(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>... types) |
org.apache.flink.types.Row |
createEmptyRow()
Creates a new empty Row matching this RowTypeInfo.
|
org.apache.flink.types.Row |
createEmptySubRow(String fieldPath)
Creates a new empty instance of a sub Row identified by fieldPath.
|
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> |
createSerializer(org.apache.flink.api.common.ExecutionConfig config)
Deprecated.
|
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> |
createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config) |
boolean |
equals(Object o) |
org.apache.flink.types.Row |
extractKey(org.apache.flink.types.Row row)
Extract a key for a given input Row.
|
Instant |
getEventTime(org.apache.flink.types.Row element)
Read the event time field.
|
Instant |
getIngestionTime(org.apache.flink.types.Row element)
Get the ingestion time of this event if set.
|
int |
hashCode() |
boolean |
hasKey()
Check if the EventRowTypeInformation instance has a partition key.
|
EventRowTypeInfo |
keyTypeInfo()
Return a TypeInfo representing the schema of Row keys.
|
org.apache.flink.types.Row |
projectFrom(org.apache.flink.types.Row row,
boolean intersect)
Project an input Row to a new Row matching the
TypeInformation of this class. |
org.apache.flink.types.Row |
projectFrom(org.apache.flink.types.Row row,
boolean intersect,
Set<String> ignoredFields)
Project an input Row to a new Row matching the
TypeInformation of this class. |
void |
setEventTime(org.apache.flink.types.Row element,
Instant eventTime)
Set the event time (dt) as per WMF event platform rules.
|
void |
setIngestionTime(org.apache.flink.types.Row element,
Instant ingestionTime)
Set the ingestion time (meta.dt) as per WMF event platform rules.
|
org.apache.flink.api.java.typeutils.RowTypeInfo |
toRowTypeInfo()
Obtain the equivalent RowTypeInfo.
|
createComparator, createLegacySerializer, createTypeComparatorBuilder, getFieldIndex, getFieldNames, getFlatFields, getTypeAt, projectFields, schemaEquals, toString
getArity, getFieldTypes, getTotalFields, getTypeAt, hasDeterministicFieldOrder, isBasicType, isCaseClass, isTupleType
getFlatFields, getTypeClass, hasField, isKeyType, isSortKeyType
public EventRowTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] types, String[] fieldNames)
public static EventRowTypeInfo create(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>... types)
public static EventRowTypeInfo create(Map<String,String> aliasedRowKey, String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>... types)
public static EventRowTypeInfo create(org.apache.flink.api.java.typeutils.RowTypeInfo info)
public static EventRowTypeInfo create(org.apache.flink.api.java.typeutils.RowTypeInfo info, Map<String,String> aliasedRowKey)
public org.apache.flink.api.java.typeutils.RowTypeInfo toRowTypeInfo()
RowTypeInfo
.public boolean canEqual(Object obj)
canEqual
in class org.apache.flink.api.java.typeutils.RowTypeInfo
public org.apache.flink.types.Row createEmptyRow()
public org.apache.flink.types.Row createEmptySubRow(String fieldPath)
IllegalArgumentException
- if the path leads to a non-existent field or a field that is not a Row.public org.apache.flink.types.Row projectFrom(org.apache.flink.types.Row row, boolean intersect, Set<String> ignoredFields)
TypeInformation
of this class.
The passed Row must:
public org.apache.flink.types.Row projectFrom(org.apache.flink.types.Row row, boolean intersect)
TypeInformation
of this class.
The following data will be ignored:
public void setIngestionTime(org.apache.flink.types.Row element, Instant ingestionTime)
IllegalArgumentException
- if the type information does not declare the meta field.public void setEventTime(org.apache.flink.types.Row element, Instant eventTime)
IllegalArgumentException
- if the type information does not declare the dt field@Nullable public Instant getEventTime(org.apache.flink.types.Row element)
public Instant getIngestionTime(org.apache.flink.types.Row element)
@Deprecated public org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> createSerializer(org.apache.flink.api.common.ExecutionConfig config)
createSerializer
in class org.apache.flink.api.java.typeutils.RowTypeInfo
public org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config)
createSerializer
in class org.apache.flink.api.java.typeutils.RowTypeInfo
public boolean hasKey()
@Nullable public org.apache.flink.types.Row extractKey(org.apache.flink.types.Row row)
row
- @Nullable public EventRowTypeInfo keyTypeInfo()
public boolean equals(Object o)
equals
in class org.apache.flink.api.java.typeutils.RowTypeInfo
public int hashCode()
hashCode
in class org.apache.flink.api.java.typeutils.RowTypeInfo
Copyright © 2025. All rights reserved.