public final class TermRange extends PhraseTerm
Phrase.Parameter
annotations, endOffset, startOffset
parameters
Constructor and Description |
---|
TermRange()
Constructor.
|
TermRange(Object lowerTerm,
Object upperTerm)
Constructor.
|
TermRange(Object lowerTerm,
Object upperTerm,
boolean includeLower,
boolean includeUpper)
Constructor.
|
TermRange(String lowerTerm,
String upperTerm)
Constructor.
|
TermRange(String lowerTerm,
String upperTerm,
boolean includeLower,
boolean includeUpper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getLowerTerm()
Get the term that specifies the lower bounds for this range.
|
String |
getUpperTerm()
Get the term that specifies the upper bounds for this range.
|
static TermRange |
greaterThan(Object term)
Creates a
TermRange that matches all terms greater than term . |
int |
hashCode() |
boolean |
isIncludeLower()
Get if the
lower term should be included in the range. |
boolean |
isIncludeUpper()
Get if the
upper term should be included in the range. |
boolean |
isMatchAll()
Returns
true if this phrase will match all documents. |
static TermRange |
lessThan(Object term)
Creates a
TermRange that matches all terms less than term . |
void |
setIncludeLower(boolean value)
Set if the
lower term should be included in the range. |
void |
setIncludeUpper(boolean value)
Set if the
upper term should be included in the range. |
void |
setLowerTerm(Object value)
Set the term that specifies the lower bounds for this range.
|
void |
setLowerTerm(String value)
Set the term that specifies the lower bounds for this range.
|
void |
setParameter(String name,
Object value)
Set parameter
name to value . |
void |
setUpperTerm(Object value)
Set the term that specifies the upper bounds for this range.
|
void |
setUpperTerm(String value)
Set the term that specifies the upper bounds for this range.
|
void |
toString(StringBuilder buffer,
boolean compact)
Appends the string representation of this query to
buffer . |
containsAnnotation, containsParameters, getAnnotations, getEndOffset, getStartOffset, offsetGap, rewriteChildren, setAnnotation, setAnnotations, setEndOffset, setStartOffset, unsetAnnotation
clone, containsParameters, copyParameters, getBoost, getParameter, getParameter, getParameter, getParameter, getParameterInternal, parameters, parseIntParameter, removeParameter, rewrite, setBoost, setParameters, toArray, toString, toString
public TermRange()
public TermRange(String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper)
public boolean isMatchAll()
true
if this phrase will match all documents.isMatchAll
in class Phrase
public void setParameter(String name, Object value)
name
to value
.
NOTE: name
is case insensitive.
setParameter
in class PhraseTerm
public String getLowerTerm()
If this value is null
, the lower bound is unbounded.
public void setLowerTerm(String value)
If value
is null
, the lower bound will be unbounded.
public void setLowerTerm(Object value)
If value
is null
, the lower bound will be unbounded.
public String getUpperTerm()
If this value is null
, the upper bound is unbounded.
public void setUpperTerm(String value)
If value
is null
, the upper bound will be unbounded.
public void setUpperTerm(Object value)
If value
is null
, the upper bound will be unbounded.
public boolean isIncludeLower()
lower term
should be included in the range.public void setIncludeLower(boolean value)
lower term
should be included in the range.public boolean isIncludeUpper()
upper term
should be included in the range.public void setIncludeUpper(boolean value)
upper term
should be included in the range.public int hashCode()
hashCode
in class PhraseTerm
public boolean equals(Object other)
equals
in class PhraseTerm
public void toString(StringBuilder buffer, boolean compact)
buffer
.public static TermRange lessThan(Object term)
TermRange
that matches all terms less than term
.Copyright © 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.