Class PlanStreamInput.NameIdMapper
java.lang.Object
org.elasticsearch.xpack.esql.io.stream.PlanStreamInput.NameIdMapper
- All Implemented Interfaces:
LongFunction<NameId>
- Enclosing class:
PlanStreamInput
A Mapper of stream named id, represented as a primitive long value, to NameId instance.
The no-args NameId constructor is used for absent entries, as it will automatically select
and increment an id from the global counter, thus avoiding potential conflicts between the
id in the stream and id's during local re-planning on the data node.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NameIdMapper
public NameIdMapper()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceLongFunction<NameId>
-
seen
-