Package com.yahoo.prelude.query
Class NullItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.NullItem
- All Implemented Interfaces:
Cloneable
A placeholder for null queries to make searchers easier to write.
- Author:
- Steinar Knutsen
-
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 TypeMethodDescriptionvoidappendBodyString(StringBuilder buffer) Override to append the item body in the canonical query language of this item.voidappendHeadingString(StringBuilder buffer) Appends the heading of this string.intencode(ByteBuffer buffer) Return the enumerated type of this item.getName()Returns the name of this itemintvoidsetIndexName(String index) Does nothingMethods 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
-
NullItem
public NullItem()
-
-
Method Details
-
setIndexName
Does nothing- Specified by:
setIndexNamein classItem
-
encode
-
getItemType
Description copied from class:ItemReturn the enumerated type of this item.- Specified by:
getItemTypein 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
-
appendHeadingString
Description copied from class:ItemAppends the heading of this string. As default getName() followed by a space.- Overrides:
appendHeadingStringin classItem
-
getName
Description copied from class:ItemReturns the name of this item -
getTermCount
public int getTermCount()- Specified by:
getTermCountin classItem
-