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