Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class StringStoredFieldFieldLoader
java.lang.Object
org.elasticsearch.index.mapper.StringStoredFieldFieldLoader
- All Implemented Interfaces:
SourceLoader.SyntheticFieldLoader
public abstract class StringStoredFieldFieldLoader
extends Object
implements SourceLoader.SyntheticFieldLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.SourceLoader.SyntheticFieldLoader
SourceLoader.SyntheticFieldLoader.DocValuesLoader, SourceLoader.SyntheticFieldLoader.StoredFieldLoader
-
Field Summary
Fields inherited from interface org.elasticsearch.index.mapper.SourceLoader.SyntheticFieldLoader
NOTHING
-
Constructor Summary
ConstructorDescriptionStringStoredFieldFieldLoader
(String name, String simpleName, String extraStoredName) -
Method Summary
Modifier and TypeMethodDescriptiondocValuesLoader
(org.apache.lucene.index.LeafReader reader, int[] docIdsInLeaf) Build something to load doc values for this field or returnnull
if there are no doc values for this field to load.final boolean
hasValue()
Has this field loaded any values for this document?AStream
mapping stored field paths to a place to put them so they can be included in the next document.final void
Write values for this document.protected abstract void
write
(XContentBuilder b, Object value)
-
Constructor Details
-
StringStoredFieldFieldLoader
-
-
Method Details
-
storedFieldLoaders
public final Stream<Map.Entry<String,SourceLoader.SyntheticFieldLoader.StoredFieldLoader>> storedFieldLoaders()Description copied from interface:SourceLoader.SyntheticFieldLoader
AStream
mapping stored field paths to a place to put them so they can be included in the next document.- Specified by:
storedFieldLoaders
in interfaceSourceLoader.SyntheticFieldLoader
-
hasValue
public final boolean hasValue()Description copied from interface:SourceLoader.SyntheticFieldLoader
Has this field loaded any values for this document?- Specified by:
hasValue
in interfaceSourceLoader.SyntheticFieldLoader
-
write
Description copied from interface:SourceLoader.SyntheticFieldLoader
Write values for this document.- Specified by:
write
in interfaceSourceLoader.SyntheticFieldLoader
- Throws:
IOException
-
write
- Throws:
IOException
-
docValuesLoader
public final SourceLoader.SyntheticFieldLoader.DocValuesLoader docValuesLoader(org.apache.lucene.index.LeafReader reader, int[] docIdsInLeaf) throws IOException Description copied from interface:SourceLoader.SyntheticFieldLoader
Build something to load doc values for this field or returnnull
if there are no doc values for this field to load.- Specified by:
docValuesLoader
in interfaceSourceLoader.SyntheticFieldLoader
- Throws:
IOException
-