Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface BlockLoader.BlockFactory
- Enclosing interface:
- BlockLoader
public static interface BlockLoader.BlockFactory
Builds block "builders" for loading data into blocks for the compute engine.
It's important for performance that this only have one implementation in
production code. That implementation sits in the "compute" project. The is
also a test implementation, but there may be no more other implementations.
-
Method Summary
Modifier and TypeMethodDescriptionbooleans
(int expectedCount) Build a builder to load booleans without any loading constraints.booleansFromDocValues
(int expectedCount) Build a builder to load booleans as loaded from doc values.bytesRefs
(int expectedCount) Build a builder to loadBytesRef
s without any loading constraints.bytesRefsFromDocValues
(int expectedCount) Build a builder to loadBytesRef
s as loaded from doc values.constantBytes
(org.apache.lucene.util.BytesRef value) Build a block that containsvalue
repeatedsize
times.Build a block that contains onlynull
.doubles
(int expectedCount) Build a builder to load doubles without any loading constraints.doublesFromDocValues
(int expectedCount) Build a builder to load doubles as loaded from doc values.ints
(int expectedCount) Build a builder to load ints without any loading constraints.intsFromDocValues
(int expectedCount) Build a builder to load ints as loaded from doc values.longs
(int expectedCount) Build a builder to load longs without any loading constraints.longsFromDocValues
(int expectedCount) Build a builder to load longs as loaded from doc values.nulls
(int expectedCount) Build a builder to load onlynull
s.singletonOrdinalsBuilder
(org.apache.lucene.index.SortedDocValues ordinals, int count) Build a reader for reading keyword ordinals.
-
Method Details
-
booleansFromDocValues
Build a builder to load booleans as loaded from doc values. Doc values load booleans in sorted order. -
booleans
Build a builder to load booleans without any loading constraints. -
bytesRefsFromDocValues
Build a builder to loadBytesRef
s as loaded from doc values. Doc values load BytesRefs deduplicated and in sorted order. -
bytesRefs
Build a builder to loadBytesRef
s without any loading constraints. -
doublesFromDocValues
Build a builder to load doubles as loaded from doc values. Doc values load doubles in sorted order. -
doubles
Build a builder to load doubles without any loading constraints. -
intsFromDocValues
Build a builder to load ints as loaded from doc values. Doc values load ints in sorted order. -
ints
Build a builder to load ints without any loading constraints. -
longsFromDocValues
Build a builder to load longs as loaded from doc values. Doc values load longs in sorted order. -
longs
Build a builder to load longs without any loading constraints. -
nulls
Build a builder to load onlynull
s. -
constantNulls
BlockLoader.Block constantNulls()Build a block that contains onlynull
. -
constantBytes
Build a block that containsvalue
repeatedsize
times. -
singletonOrdinalsBuilder
BlockLoader.SingletonOrdinalsBuilder singletonOrdinalsBuilder(org.apache.lucene.index.SortedDocValues ordinals, int count) Build a reader for reading keyword ordinals.
-