Interface FastStreamingDocsCallback
public interface FastStreamingDocsCallback
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidA document endsvoidFound a new fielddefault ObjectinitDocList(Long numFound, Long start, Float maxScore) callback for a doclistdefault ObjectstartChildDoc(Object parentDocObj) A new child doc startsStarted a document
-
Method Details
-
initDocList
callback for a doclist- Returns:
- the object to be shared with all the {
startDoc(Object)} calls. return null if nothing needs to be shared
-
startDoc
Started a document- Parameters:
docListObj- This object is the value returned by the {initDocList(Long, Long, Float)} method- Returns:
- any arbitrary object that should be shared between each field
-
field
Found a new field- Parameters:
field- Read the appropriate valuedocObj- The object returned by {startDoc(Object)} method
-
endDoc
A document ends- Parameters:
docObj- The object returned by {startDoc(Object)} method
-
startChildDoc
A new child doc starts- Parameters:
parentDocObj- an object that will be shared across all the {field(DataEntry, Object)}- Returns:
- any custom object that be shared with the fields in this child doc
-