Package org.elasticsearch.search.lookup
Class SourceLookup
- java.lang.Object
-
- org.elasticsearch.search.lookup.SourceLookup
-
-
Constructor Summary
Constructors Constructor Description SourceLookup()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
sourceContentType
public XContentType sourceContentType()
-
sourceAsMapAndType
public static Tuple<XContentType,Map<String,Object>> sourceAsMapAndType(BytesReference source) throws ElasticsearchParseException
- Throws:
ElasticsearchParseException
-
sourceAsMap
public static Map<String,Object> sourceAsMap(BytesReference source) throws ElasticsearchParseException
- Throws:
ElasticsearchParseException
-
setSegmentAndDocument
public void setSegmentAndDocument(LeafReaderContext context, int docId)
-
setSource
public void setSource(BytesReference source)
-
setSourceContentType
public void setSourceContentType(XContentType sourceContentType)
-
internalSourceRef
public BytesReference internalSourceRef()
Internal source representation, might be compressed....
-
extractRawValues
public List<Object> extractRawValues(String path)
Returns the values associated with the path. Those are "low" level values, and it can handle path expression where an array/list is navigated within.
-
filter
public Object filter(FetchSourceContext context)
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap
-
values
public Collection values()
-
-