Package com.yahoo.prelude.query
Class StringInItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.InItem
com.yahoo.prelude.query.StringInItem
- All Implemented Interfaces:
Cloneable
Class representing an IN operator with a set of string values.
- Author:
- toregge
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.prelude.query.Item
Item.ItemCreator, Item.ItemType
-
Field Summary
Fields inherited from class com.yahoo.prelude.query.Item
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
-
Constructor Summary
ConstructorDescriptionStringInItem
(String indexName) StringInItem
(String indexName, Set<String> tokens) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
appendBodyString
(StringBuilder buffer) Override to append the item body in the canonical query language of this item.clone()
Returns a deep copy of this itemvoid
int
encode
(ByteBuffer buffer) protected void
encodeThis
(ByteBuffer buffer) boolean
Returns whether this item is of the same class and contains the same state as the given item.Return the enumerated type of this item.int
int
hashCode()
void
removeToken
(String token) Methods inherited from class com.yahoo.prelude.query.InItem
getIndexName, getName, setIndexName
Methods inherited from class com.yahoo.prelude.query.Item
addAnnotation, appendHeadingString, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hasPrefixMatchSemantics, hasUniqueID, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthesize, toString, usePositionData
-
Constructor Details
-
StringInItem
-
StringInItem
-
-
Method Details
-
getItemType
Description copied from class:Item
Return the enumerated type of this item.- Specified by:
getItemType
in classItem
-
encode
-
encodeThis
- Overrides:
encodeThis
in classItem
-
getTermCount
public int getTermCount()- Specified by:
getTermCount
in classItem
-
appendBodyString
Description copied from class:Item
Override to append the item body in the canonical query language of this item. An item is usually represented by the string([itemName] [body])
The body must be appended appended by this method.- Specified by:
appendBodyString
in classItem
-
addToken
-
removeToken
-
getTokens
-
disclose
-
equals
Description copied from class:Item
Returns whether this item is of the same class and contains the same state as the given item. -
hashCode
public int hashCode() -
clone
Description copied from class:Item
Returns a deep copy of this item
-