public class RangeItem extends IntItem
Item.ItemCreator, Item.ItemType
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
Constructor and Description |
---|
RangeItem(Limit from,
Limit to,
int hitLimit,
String indexName,
boolean isFromQuery) |
RangeItem(Limit from,
Limit to,
String indexName)
Creates a new range operator
|
RangeItem(Limit from,
Limit to,
String indexName,
boolean isFromQuery)
Creates a new range operator
|
RangeItem(Number from,
Number to,
int hitLimit,
String indexName,
boolean isFromQuery) |
RangeItem(Number from,
Number to,
String indexName)
Creates a new range operator
|
RangeItem(Number from,
Number to,
String indexName,
boolean isFromQuery)
Creates a new range operator
|
Modifier and Type | Method and Description |
---|---|
Number |
getFrom()
Returns the lower limit of this range, which may be negative infinity
|
Number |
getTo()
Returns the upper limit of this range, which may be positive infinity
|
appendHeadingString, encodeThis, equals, from, getEncodedInt, getFromLimit, getHitLimit, getIndexedString, getItemType, getName, getNumber, getNumWords, getRawWord, getToLimit, hashCode, isStemmed, isWords, setHitLimit, setNumber, setValue, stringValue
appendBodyString, disclose, encode, getOrigin, getSegmentingRule, getTermCount, isFromQuery, isNormalizable, setNormalizable, setOrigin, setSegmentingRule
appendIndexString, getIndexName, setIndexName
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
addAnnotation, clone, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthize, toString, usePositionData
finalize, getClass, notify, notifyAll, wait, wait, wait
getIndexName
public RangeItem(Number from, Number to, String indexName)
from
- inclusive start point for rangeto
- inclusive end point for rangeindexName
- the index to search for this rangepublic RangeItem(Limit from, Limit to, String indexName)
from
- start point for rangeto
- end point for rangeindexName
- the index to search for this rangepublic RangeItem(Number from, Number to, String indexName, boolean isFromQuery)
from
- inclusive start point for rangeto
- inclusive end point for rangeindexName
- the index to search for this rangeisFromQuery
- Indicate if this stems directly from the user given query,
or if you have constructed it at will.public RangeItem(Limit from, Limit to, String indexName, boolean isFromQuery)
from
- start point for rangeto
- end point for rangeindexName
- the index to search for this rangeisFromQuery
- Indicate if this stems directly from the user given query,
or if you have constructed it at will.public RangeItem(Number from, Number to, int hitLimit, String indexName, boolean isFromQuery)
from
- inclusive start point for rangeto
- inclusive end point for rangehitLimit
- This tells how many results you want included from this range as a minimum.
You might get less if there are not enough, or you might get more. It will use the dictionary and
include enough entries to satisfy your request.
Positive number will start from left (@from) and work right.
Negative number will start from right and work its way left.
0 means no limit.indexName
- the index to search for this rangeisFromQuery
- Indicate if this stems directly from the user given query,
or if you have constructed it at will.public RangeItem(Limit from, Limit to, int hitLimit, String indexName, boolean isFromQuery)
from
- start point for rangeto
- end point for rangehitLimit
- This tells how many results you want included from this range as a minimum.
You might get less if there are not enough, or you might get more. It will use the dictionary and
include enough entries to satisfy your request.
Positive number will start from left (@from) and work right.
Negative number will start from right and work its way left.
0 means no limit.indexName
- the index to search for this rangeisFromQuery
- Indicate if this stems directly from the user given query,
or if you have constructed it at will.Copyright © 2018. All rights reserved.