public class ScopeField extends FieldExpression
FieldExpression.StringModealias, EMPTY_ARRAY| Constructor and Description | 
|---|
ScopeField(HighlightMode mode,
          String fieldName,
          String scope)
Construct a new field source for  
fieldName | 
ScopeField(HighlightMode mode,
          String fieldName,
          String scope,
          String alias)
Construct a new ScopeField for  
fieldName | 
ScopeField(String fieldName,
          String scope)
Construct a new field source for  
fieldName | 
ScopeField(String fieldName,
          String scope,
          String alias)
Construct a new ScopeField for  
fieldName | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equalsIgnoreAlias(FieldExpression other)
Returns  
true if other is the same as this, with the exception of alias. | 
String | 
getFieldName()
Get the name of the field to return values for. 
 | 
HighlightMode | 
getMode()  | 
String | 
getScope()  | 
SchemaField.Type | 
getType(Schema schema)
Resolve the type for this expression. 
 | 
boolean | 
hasChildren()
Returns  
true if this field expression has any sub FieldExpressions. | 
int | 
hashCode() | 
boolean | 
isConstant()
Returns  
true if this field expression evaluates to a constant value. | 
FieldExpression | 
rewriteChildren(FieldExpressionHandler handler)
Traverse this FieldExpression using  
handler to visit/rewrite direct child elements if this expression. | 
void | 
setFieldName(String value)
Set the name of the field to return. 
 | 
void | 
setMode(HighlightMode value)  | 
void | 
setScope(String value)  | 
protected void | 
toString(StringBuilder buffer,
        FieldExpression.StringMode stringmode)
Writes the string representation of this field expression to  
buffer. | 
as, clone, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, handleFieldExpression, isConstant, quote, rewrite, rewrite, setAlias, toString, toStringpublic ScopeField(String fieldName, String scope)
fieldNamepublic ScopeField(HighlightMode mode, String fieldName, String scope)
fieldNamepublic ScopeField(String fieldName, String scope, String alias)
fieldNamepublic ScopeField(HighlightMode mode, String fieldName, String scope, String alias)
fieldNamepublic boolean isConstant()
true if this field expression evaluates to a constant value.isConstant in class FieldExpressionpublic boolean hasChildren()
true if this field expression has any sub FieldExpressions.hasChildren in class FieldExpressionpublic SchemaField.Type getType(Schema schema)
getType in class FieldExpressionpublic String getFieldName()
getFieldName in class FieldExpressionpublic void setFieldName(String value)
public String getScope()
public void setScope(String value)
public HighlightMode getMode()
public void setMode(HighlightMode value)
public FieldExpression rewriteChildren(FieldExpressionHandler handler)
handler to visit/rewrite direct child elements if this expression.
 NOTE: this method traverses direct child expressions (if any) only.
rewriteChildren in class FieldExpressionprotected void toString(StringBuilder buffer, FieldExpression.StringMode stringmode)
buffer.
 
 NOTE: the alias will not be written to buffer by this function.
toString in class FieldExpressionpublic boolean equalsIgnoreAlias(FieldExpression other)
true if other is the same as this, with the exception of alias.equalsIgnoreAlias in class FieldExpressionpublic int hashCode()
hashCode in class FieldExpressionCopyright © 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.