@Internal public class FieldAccessorFactory extends Object implements Serializable
FieldAccessor
utilities.Constructor and Description |
---|
FieldAccessorFactory() |
Modifier and Type | Method and Description |
---|---|
static <T,F> FieldAccessor<T,F> |
getAccessor(TypeInformation<T> typeInfo,
int pos,
ExecutionConfig config)
Creates a
FieldAccessor for 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(TypeInformation<T> typeInfo,
String field,
ExecutionConfig config)
Creates a
FieldAccessor for 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. |
@Internal public static <T,F> FieldAccessor<T,F> getAccessor(TypeInformation<T> typeInfo, int pos, ExecutionConfig config)
FieldAccessor
for the given field position, which can be used to get and
set the specified field on instances of this type.F
- The type of the field to accesspos
- The field position (zero-based)config
- Configuration object@Internal public static <T,F> FieldAccessor<T,F> getAccessor(TypeInformation<T> typeInfo, String field, ExecutionConfig config)
FieldAccessor
for 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.F
- The type of the field to accessfield
- The field expressionconfig
- Configuration objectCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.