OUT
- The type of elements returned by this function.@Internal public class IndexLookupGeneratorFunction<OUT> extends Object implements GeneratorFunction<Long,OUT>
This generator function serializes the elements using Flink's type information. That way, any object transport using Java serialization will not be affected by the serializability of the elements.
Constructor and Description |
---|
IndexLookupGeneratorFunction(TypeInformation<OUT> typeInfo,
ExecutionConfig config,
Iterable<OUT> elements) |
IndexLookupGeneratorFunction(TypeInformation<OUT> typeInfo,
Iterable<OUT> elements) |
Modifier and Type | Method and Description |
---|---|
TypeSerializer<OUT> |
getSerializer() |
OUT |
map(Long index) |
void |
open(SourceReaderContext readerContext)
Initialization method for the function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public IndexLookupGeneratorFunction(TypeInformation<OUT> typeInfo, Iterable<OUT> elements)
public IndexLookupGeneratorFunction(TypeInformation<OUT> typeInfo, ExecutionConfig config, Iterable<OUT> elements)
@VisibleForTesting @Nullable public TypeSerializer<OUT> getSerializer()
public void open(SourceReaderContext readerContext) throws Exception
GeneratorFunction
open
in interface GeneratorFunction<Long,OUT>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.