public class NoOpPreparsedDocumentProvider extends java.lang.Object implements PreparsedDocumentProvider
Modifier and Type | Field and Description |
---|---|
static NoOpPreparsedDocumentProvider |
INSTANCE |
Constructor and Description |
---|
NoOpPreparsedDocumentProvider() |
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 it's not present, then the "parseAndValidateFunction"
can be called to parse and validate the query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentAsync
public static final NoOpPreparsedDocumentProvider INSTANCE
public PreparsedDocumentEntry getDocument(ExecutionInput executionInput, java.util.function.Function<ExecutionInput,PreparsedDocumentEntry> parseAndValidateFunction)
PreparsedDocumentProvider
Note - the "parseAndValidateFunction" MUST be called if you don't 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 don't make a call back on this then these wont happen.
getDocument
in interface PreparsedDocumentProvider
executionInput
- The ExecutionInput
containing the queryparseAndValidateFunction
- If the query has not be pre-parsed, this function MUST be called to parse and validate itPreparsedDocumentEntry