- Enclosing interface:
- SourceLoader
public static interface SourceLoader.Leaf
Loads
_source
from some segment.-
Method Summary
Modifier and TypeMethodDescriptionsource
(LeafStoredFieldLoader storedFields, int docId) Load the_source
for a document.void
write
(LeafStoredFieldLoader storedFields, int docId, XContentBuilder b) Write the_source
for a document in the providedXContentBuilder
.
-
Method Details
-
source
Load the_source
for a document.- Parameters:
storedFields
- a loader for stored fieldsdocId
- the doc to load- Throws:
IOException
-
write
Write the_source
for a document in the providedXContentBuilder
.- Parameters:
storedFields
- a loader for stored fieldsdocId
- the doc to loadb
- the builder to write the xcontent- Throws:
IOException
-