Package com.yahoo.prelude.query
Class FalseItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.FalseItem
- All Implemented Interfaces:
Cloneable
A query item which never matches. This is sometimes a useful output of query rewriting.
- Author:
- bratseth
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendBodyString
(StringBuilder buffer) Override to append the item body in the canonical query language of this item.protected void
appendHeadingString
(StringBuilder buffer) Override to only return "FALSE" rather than "FALSE "int
encode
(ByteBuffer buffer) Return the enumerated type of this item.getName()
Returns the name of this itemint
void
setIndexName
(String index) Sets the index name of this itemMethods inherited from class com.yahoo.prelude.query.Item
addAnnotation, clone, disclose, encodeThis, equals, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hashCode, hasUniqueID, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthesize, toString, usePositionData
-
Constructor Details
-
FalseItem
public FalseItem()
-
-
Method Details
-
setIndexName
Description copied from class:Item
Sets the index name of this item- Specified by:
setIndexName
in classItem
-
getItemType
Description copied from class:Item
Return the enumerated type of this item.- Specified by:
getItemType
in classItem
-
getName
Description copied from class:Item
Returns the name of this item -
appendHeadingString
Override to only return "FALSE" rather than "FALSE "- Overrides:
appendHeadingString
in classItem
-
encode
-
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
-