Class FieldAccessorFactory
- java.lang.Object
-
- org.apache.flink.streaming.util.typeutils.FieldAccessorFactory
-
- All Implemented Interfaces:
Serializable
@Internal public class FieldAccessorFactory extends Object implements Serializable
Static factories for theFieldAccessorutilities.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldAccessorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,F>
FieldAccessor<T,F>getAccessor(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, int pos, org.apache.flink.api.common.ExecutionConfig config)Creates aFieldAccessorfor the given field position, which can be used to get and set the specified field on instances of this type.static <T,F>
FieldAccessor<T,F>getAccessor(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, String field, org.apache.flink.api.common.ExecutionConfig config)Creates aFieldAccessorfor the field that is given by a field expression, which can be used to get and set the specified field on instances of this type.
-
-
-
Method Detail
-
getAccessor
@Internal public static <T,F> FieldAccessor<T,F> getAccessor(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, int pos, org.apache.flink.api.common.ExecutionConfig config)
Creates aFieldAccessorfor the given field position, which can be used to get and set the specified field on instances of this type.- Type Parameters:
F- The type of the field to access- Parameters:
pos- The field position (zero-based)config- Configuration object- Returns:
- The created FieldAccessor
-
getAccessor
@Internal public static <T,F> FieldAccessor<T,F> getAccessor(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, String field, org.apache.flink.api.common.ExecutionConfig config)
Creates aFieldAccessorfor the field that is given by a field expression, which can be used to get and set the specified field on instances of this type.- Type Parameters:
F- The type of the field to access- Parameters:
field- The field expressionconfig- Configuration object- Returns:
- The created FieldAccessor
-
-