Package com.yahoo.prelude.query
Class TrueItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.TrueItem
- All Implemented Interfaces:
Cloneable
A query item which matches everything.
- Author:
- arnej
-
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, documentFrequency, explicitSignificance, significance, uniqueID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendBodyString(StringBuilder buffer) Override to append the item body in the canonical query language of this item.protected voidappendHeadingString(StringBuilder buffer) Override to only return "TRUE" rather than "TRUE "intencode(ByteBuffer buffer) Return the enumerated type of this item.getName()Returns the name of this itemintvoidsetIndexName(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, 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
-
TrueItem
public TrueItem()
-
-
Method Details
-
setIndexName
Description copied from class:ItemSets the index name of this item- Specified by:
setIndexNamein classItem
-
getItemType
Description copied from class:ItemReturn the enumerated type of this item.- Specified by:
getItemTypein classItem
-
getName
Description copied from class:ItemReturns the name of this item -
appendHeadingString
Override to only return "TRUE" rather than "TRUE "- Overrides:
appendHeadingStringin classItem
-
encode
-
getTermCount
public int getTermCount()- Specified by:
getTermCountin classItem
-
appendBodyString
Description copied from class:ItemOverride 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 by this method.- Specified by:
appendBodyStringin classItem
-