public class LQLQueryConfig extends QueryConfig
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AST_HANDLER_FUNCTION |
static java.lang.String |
DEFAULT_ID |
idCLASS_PROPERTY, VIEWKEY_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
LQLQueryConfig() |
|
LQLQueryConfig(com.endeca.mdex.eql_parser.types.Query lqlQuery)
Construct a new LQLQueryConfig with a specified query in the pre-parsed ast format.
|
|
LQLQueryConfig(java.lang.String id,
com.endeca.mdex.eql_parser.types.Query lqlQuery)
Construct a new LQLQueryConfig with a specified query in pre-parsed ast format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.types.Request request,
java.lang.String stateName)
Apply this function to a Request.
|
QueryFunction |
clone() |
com.endeca.mdex.eql_parser.types.Query |
getQuery()
gets the LQL expression in object form
|
java.lang.String |
getQueryString()
Returns an XML representation of this query's LQL AST.
|
void |
setQuery(com.endeca.mdex.eql_parser.types.Query lqlQuery)
sets the LQL query from an object form.
|
void |
setQueryString(java.lang.String queryString)
Sets this query's LQL AST expression from an XML representation.
|
java.lang.String |
toString()
This class' toString is abstract: all concrete subclasses are expected to provide an implementation. toString is used in comparing
QueryFunction instances for equality, so if you implement a QueryFunction subclass it is important that your toString implementation be
consistent and deterministic.
|
getId, setIdapplyToDiscoveryServiceQuery, beforeQueryStateAdd, beforeQueryStateRemove, equals, equals, getCompareString, getName, getStateNameOverride, getVersion, getViewKey, hashCode, initializeFromJSON, isInvalid, setInvalid, setName, setStateNameOverride, setVersion, setViewKey, upgradepublic static final java.lang.String DEFAULT_ID
public static final java.lang.String AST_HANDLER_FUNCTION
protected LQLQueryConfig()
public LQLQueryConfig(com.endeca.mdex.eql_parser.types.Query lqlQuery)
lqlQuery - public LQLQueryConfig(java.lang.String id,
com.endeca.mdex.eql_parser.types.Query lqlQuery)
id - A string id used to distinguish this function from otherslqlQuery - public com.endeca.mdex.eql_parser.types.Query getQuery()
public void setQuery(com.endeca.mdex.eql_parser.types.Query lqlQuery)
lqlQuery - the LQL query in object formpublic java.lang.String getQueryString()
LQLUtils.queryToString(Query).public void setQueryString(java.lang.String queryString)
setQuery(Query).
The XML input should have previously been generated by getQueryString() or
LQLUtils.queryToString(Query).
We recommend that users do not call this method directly. This method exists is required for deserialization of
QueryState objects.queryString - XML representation of the expressionpublic void applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.types.Request request,
java.lang.String stateName)
throws QueryFunctionUnsupportedException
QueryFunctionapplyToDiscoveryServiceQuery in class QueryFunctionrequest - the CS Request to which this function should be appliedstateName - stateName to use for filters or content element configsQueryFunctionUnsupportedExceptionpublic java.lang.String toString()
QueryFunctiontoString in class QueryFunctionpublic QueryFunction clone()
clone in class QueryFunctionCopyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.