- All Known Implementing Classes:
SourceLoader.Stored,SourceLoader.Synthetic,SourceLoader.SyntheticVectors
public interface SourceLoader
Loads source
_source during a GET or _search.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSynthetic field loader that uses only doc values to load synthetic source values.static interfaceLoads_sourcefrom some segment.static final recordA patch representing a leaf field with a value to be applied.static final recordA patch representing an indexed child within a nested structure.static final recordA patch representing a nested path with further child patches.static classstatic classReconstructs_sourcefrom doc values and stored fields.static interfaceLoad a field forSourceLoader.Synthetic.static interfaceRepresents a patch to be applied to a source structure.static classstatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceapplySyntheticVectors(Source originalSource, List<SourceLoader.SyntheticVectorPatch> patches) Applies a list ofSourceLoader.SyntheticVectorPatchinstances to the givenSource.leaf(org.apache.lucene.index.LeafReader reader, int[] docIdsInLeaf) Build the loader for some segment.booleanDoes thisSourceLoaderreorder field values?Stream containing all non-_sourcestored fields required to build the_source.
-
Field Details
-
FROM_STORED_SOURCE
Load_sourcefrom a stored field.
-
-
Method Details
-
reordersFieldValues
boolean reordersFieldValues()Does thisSourceLoaderreorder field values? -
leaf
SourceLoader.Leaf leaf(org.apache.lucene.index.LeafReader reader, int[] docIdsInLeaf) throws IOException Build the loader for some segment.- Throws:
IOException
-
requiredStoredFields
Stream containing all non-_sourcestored fields required to build the_source. -
applySyntheticVectors
static Source applySyntheticVectors(Source originalSource, List<SourceLoader.SyntheticVectorPatch> patches) Applies a list ofSourceLoader.SyntheticVectorPatchinstances to the givenSource.- Parameters:
originalSource- the original source objectpatches- the list of patches to apply- Returns:
- a new
Sourcewith the patches applied
-