@PublicSpi public interface PreparsedDocumentProvider
Modifier and Type | Method and Description |
---|---|
PreparsedDocumentEntry |
getDocument(ExecutionInput executionInput,
java.util.function.Function<ExecutionInput,PreparsedDocumentEntry> parseAndValidateFunction)
This is called to get a "cached" pre-parsed query and if its not present, then the "parseAndValidateFunction"
can be called to parse and validate the query.
|
PreparsedDocumentEntry getDocument(ExecutionInput executionInput, java.util.function.Function<ExecutionInput,PreparsedDocumentEntry> parseAndValidateFunction)
Note - the "parseAndValidateFunction" MUST be called if you dont have a per parsed version of the query because it not only parses
and validates the query, it invokes Instrumentation
calls as well for parsing and validation.
if you dont make a call back on this then these wont happen.
executionInput
- The ExecutionInput
containing the queryparseAndValidateFunction
- If the query has not be pre-parsed, this function MUST be called to parse and validate itPreparsedDocumentEntry