public class ClauseContext extends UnaryFieldExpression
Clauses can be named by setting the alias on a JoinClause.
When clauses are named, fields for child documents from those clauses can be selected by wrapping
a FieldExpression with a ClauseContext.
FieldExpression.StringMode| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_CONTEXT
Context to request field from all clauses.
|
static String |
DEFAULT_CLAUSE_CONTEXT
Default context name for clauses.
|
static String |
ROOT_CONTEXT
Context for root clause.
|
expressionalias, EMPTY_ARRAY| Constructor and Description |
|---|
ClauseContext(FieldExpression expression,
String clause) |
ClauseContext(FieldExpression expression,
String clause,
String alias) |
ClauseContext(String field,
String clause) |
ClauseContext(String field,
String clause,
String alias) |
| Modifier and Type | Method and Description |
|---|---|
ClauseContext |
clone() |
String |
getClauseName()
Get the name of the clause to select fields for.
|
SchemaField.Type |
getType(Schema schema)
Resolve the type for this expression.
|
int |
hashCode() |
boolean |
isConstant()
Returns
true if this field expression evaluates to a constant value. |
protected boolean |
parametersEqual(FieldExpression other)
Returns
true if other's parameters are the same as this. |
void |
setClauseName(String value)
Set the name of the clause to select fields for.
|
protected void |
toString(StringBuilder buffer,
FieldExpression.StringMode mode)
Writes the string representation of this field expression to
buffer. |
clone, equalsIgnoreAlias, getExpression, getFieldName, hasChildren, rewrite, rewriteChildren, setExpressionas, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toStringpublic static final String ROOT_CONTEXT
public static final String DEFAULT_CLAUSE_CONTEXT
public static final String ALL_CONTEXT
public ClauseContext(FieldExpression expression, String clause)
public ClauseContext(FieldExpression expression, String clause, String alias)
public boolean isConstant()
true if this field expression evaluates to a constant value.isConstant in class UnaryFieldExpressionpublic String getClauseName()
A clause name of * or null will select fields for all clauses.
public void setClauseName(String value)
public SchemaField.Type getType(Schema schema)
getType in class FieldExpressionprotected void toString(StringBuilder buffer, FieldExpression.StringMode mode)
buffer.
NOTE: the alias will not be written to buffer by this function.
toString in class FieldExpressionpublic int hashCode()
hashCode in class UnaryFieldExpressionprotected boolean parametersEqual(FieldExpression other)
true if other's parameters are the same as this.parametersEqual in class UnaryFieldExpressionpublic ClauseContext clone()
clone in class UnaryFieldExpressionCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.