Class TimestampExtractorUtils
java.lang.Object
org.apache.flink.table.sources.tsextractors.TimestampExtractorUtils
Utility methods for dealing with
TimestampExtractor.-
Method Summary
Modifier and TypeMethodDescriptionstatic ResolvedFieldReference[]getAccessedFields(TimestampExtractor timestampExtractor, DataType physicalInputType, Function<String, String> nameRemapping) Retrieves all field accesses needed for the givenTimestampExtractor.
-
Method Details
-
getAccessedFields
public static ResolvedFieldReference[] getAccessedFields(TimestampExtractor timestampExtractor, DataType physicalInputType, Function<String, String> nameRemapping) Retrieves all field accesses needed for the givenTimestampExtractor.- Parameters:
timestampExtractor- Extractor for which to construct array of field accesses.physicalInputType- Physical input type that the timestamp extractor accesses.nameRemapping- Additional remapping of a logical to a physical field name. TimestampExtractor works with logical names, but accesses physical fields- Returns:
- Array of physical field references.
-