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 classLoadbooleans from_source.static classLoadBytesRefs from_source.static classLoaddoubles from_source.static classstatic classLoadints from_source.static interfacestatic classLoadlongs from_source. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidappend(BlockLoader.Builder builder, Object v) final booleancanReuse(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.LeafIteratorLookupwhich checks for the field in thefield names field.lookupFromNorms(String fieldName) Build aBlockSourceReader.LeafIteratorLookupwhich checks for norms of a text field.Build aBlockSourceReader.LeafIteratorLookupwhich checks for norms of a text field.final voidread(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.RowStrideReaderReads the values of the given document into the builder.- Specified by:
readin interfaceBlockLoader.RowStrideReader- Throws:
IOException
-
append
-
canReuse
public final boolean canReuse(int startingDocID) Description copied from interface:BlockLoader.ReaderChecks if the reader can be used to read a range documents starting with the given docID by the current thread.- Specified by:
canReusein interfaceBlockLoader.Reader
-
lookupMatchingAll
Build aBlockSourceReader.LeafIteratorLookupwhich checks for norms of a text field. -
lookupFromFieldNames
public static BlockSourceReader.LeafIteratorLookup lookupFromFieldNames(FieldNamesFieldMapper.FieldNamesFieldType fieldNames, String fieldName) Build aBlockSourceReader.LeafIteratorLookupwhich checks for the field in thefield names field. -
lookupFromNorms
Build aBlockSourceReader.LeafIteratorLookupwhich checks for norms of a text field.
-