@PublicEvolving public final class StreamRecordTimestamp extends TimestampExtractor
Note: This extractor only works for StreamTableSources.
Modifier and Type | Field and Description |
---|---|
static StreamRecordTimestamp |
INSTANCE |
Constructor and Description |
---|
StreamRecordTimestamp() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String[] |
getArgumentFields()
Returns the names of all fields that the expression of the field computer accesses.
|
Expression |
getExpression(ResolvedFieldReference[] fieldAccesses)
Returns the
Expression that computes the value of the field. |
int |
hashCode() |
Map<String,String> |
toProperties()
This method is a default implementation that uses java serialization and it is discouraged.
|
void |
validateArgumentFields(TypeInformation<?>[] argumentFieldTypes)
Validates that the fields that the expression references have the correct types.
|
getReturnType
public static final StreamRecordTimestamp INSTANCE
public String[] getArgumentFields()
FieldComputer
public void validateArgumentFields(TypeInformation<?>[] argumentFieldTypes)
FieldComputer
argumentFieldTypes
- The types of the physical input fields.public Expression getExpression(ResolvedFieldReference[] fieldAccesses)
FieldComputer
Expression
that computes the value of the field.fieldAccesses
- Field access expressions for the argument fields.TableSource
return type.public Map<String,String> toProperties()
TimestampExtractor
toProperties
in interface Descriptor
toProperties
in class TimestampExtractor
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.