Package com.yahoo.prelude.query
Class PureWeightedString
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.PureWeightedItem
com.yahoo.prelude.query.PureWeightedString
- All Implemented Interfaces:
Cloneable
A word item which only consists of a value and weight.
- Author:
- baldersheim
-
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
ConstructorsConstructorDescriptionPureWeightedString(String value) PureWeightedString(String value, int weight) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendBodyString(StringBuilder buffer) Override to append the item body in the canonical query language of this item.voidprotected voidencodeThis(ByteBuffer buffer) booleanReturns whether this item is of the same class and contains the same state as the given item.Return the enumerated type of this item.intinthashCode()Methods inherited from class com.yahoo.prelude.query.PureWeightedItem
encode, getName, setIndexNameMethods inherited from class com.yahoo.prelude.query.Item
addAnnotation, appendHeadingString, clone, 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
-
PureWeightedString
-
PureWeightedString
-
-
Method Details
-
getItemType
Description copied from class:ItemReturn the enumerated type of this item.- Specified by:
getItemTypein classItem
-
encodeThis
- Overrides:
encodeThisin classItem
-
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.- Overrides:
appendBodyStringin classPureWeightedItem
-
getString
-
equals
Description copied from class:ItemReturns whether this item is of the same class and contains the same state as the given item. -
hashCode
public int hashCode() -
disclose
- Overrides:
disclosein classPureWeightedItem
-