java.lang.Object
org.elasticsearch.index.mapper.BlockSourceReader
- All Implemented Interfaces:
BlockLoader.Reader
,BlockLoader.RowStrideReader
Loads values from
_source
. This whole process is very slow and cast-tastic,
so it doesn't really try to avoid megamorphic invocations. It's just going to be
slow.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Loadboolean
s from_source
.static class
LoadBytesRef
s from_source
.static class
Loaddouble
s from_source
.static class
static class
Loadint
s from_source
.static interface
static class
Loadlong
s from_source
. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
append
(BlockLoader.Builder builder, Object v) final boolean
canReuse
(int startingDocID) Checks if the reader can be used to read a range documents starting with the given docID by the current thread.lookupFromFieldNames
(FieldNamesFieldMapper.FieldNamesFieldType fieldNames, String fieldName) Build aBlockSourceReader.LeafIteratorLookup
which checks for the field in thefield names field
.lookupFromNorms
(String fieldName) Build aBlockSourceReader.LeafIteratorLookup
which checks for norms of a text field.Build aBlockSourceReader.LeafIteratorLookup
which checks for norms of a text field.final void
read
(int docId, BlockLoader.StoredFields storedFields, BlockLoader.Builder builder) Reads the values of the given document into the builder.
-
Method Details
-
read
public final void read(int docId, BlockLoader.StoredFields storedFields, BlockLoader.Builder builder) throws IOException Description copied from interface:BlockLoader.RowStrideReader
Reads the values of the given document into the builder.- Specified by:
read
in interfaceBlockLoader.RowStrideReader
- Throws:
IOException
-
append
-
canReuse
public final boolean canReuse(int startingDocID) Description copied from interface:BlockLoader.Reader
Checks if the reader can be used to read a range documents starting with the given docID by the current thread.- Specified by:
canReuse
in interfaceBlockLoader.Reader
-
lookupMatchingAll
Build aBlockSourceReader.LeafIteratorLookup
which checks for norms of a text field. -
lookupFromFieldNames
public static BlockSourceReader.LeafIteratorLookup lookupFromFieldNames(FieldNamesFieldMapper.FieldNamesFieldType fieldNames, String fieldName) Build aBlockSourceReader.LeafIteratorLookup
which checks for the field in thefield names field
. -
lookupFromNorms
Build aBlockSourceReader.LeafIteratorLookup
which checks for norms of a text field.
-