Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class BinaryDocValuesSyntheticFieldLoader
java.lang.Object
org.elasticsearch.index.mapper.SourceLoader.DocValuesBasedSyntheticFieldLoader
org.elasticsearch.index.mapper.BinaryDocValuesSyntheticFieldLoader
- All Implemented Interfaces:
SourceLoader.SyntheticFieldLoader
public abstract class BinaryDocValuesSyntheticFieldLoader
extends SourceLoader.DocValuesBasedSyntheticFieldLoader
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocValuesLoader(org.apache.lucene.index.LeafReader leafReader, int[] docIdsInLeaf) Build something to load doc values for this field or returnnullif there are no doc values for this field to load.Returns the canonical field name for this loader.booleanhasValue()Has this field loaded any values for this document?voidWrite values for this document.protected abstract voidwriteValue(XContentBuilder b, org.apache.lucene.util.BytesRef value) Methods inherited from class org.elasticsearch.index.mapper.SourceLoader.DocValuesBasedSyntheticFieldLoader
reset, storedFieldLoadersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.SourceLoader.SyntheticFieldLoader
prepare, setIgnoredValues
-
Constructor Details
-
BinaryDocValuesSyntheticFieldLoader
-
-
Method Details
-
writeValue
protected abstract void writeValue(XContentBuilder b, org.apache.lucene.util.BytesRef value) throws IOException - Throws:
IOException
-
docValuesLoader
public SourceLoader.SyntheticFieldLoader.DocValuesLoader docValuesLoader(org.apache.lucene.index.LeafReader leafReader, int[] docIdsInLeaf) throws IOException Description copied from interface:SourceLoader.SyntheticFieldLoaderBuild something to load doc values for this field or returnnullif there are no doc values for this field to load.- Parameters:
docIdsInLeaf- can be null.- Throws:
IOException
-
hasValue
public boolean hasValue()Description copied from interface:SourceLoader.SyntheticFieldLoaderHas this field loaded any values for this document? -
write
Description copied from interface:SourceLoader.SyntheticFieldLoaderWrite values for this document.- Throws:
IOException
-
fieldName
Description copied from interface:SourceLoader.SyntheticFieldLoaderReturns the canonical field name for this loader.
-