public abstract class PureWeightedItem extends Item
Item.ItemCreator, Item.ItemType
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
Constructor and Description |
---|
PureWeightedItem(int weight) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendBodyString(StringBuilder buffer)
Override to append the item body in the canonical query language of this item.
|
int |
encode(ByteBuffer buffer) |
String |
getName()
Returns the name of this item
|
void |
setIndexName(String index)
Sets the index name of this item
|
addAnnotation, appendHeadingString, clone, disclose, encodeThis, equals, getAnnotation, getBytes, getCode, getCreator, getItemType, getLabel, getLanguage, getParent, getTermCount, getWeight, hasAnnotation, hasConnectivityBackLink, hashCode, hasUniqueID, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthize, toString, usePositionData
public void setIndexName(String index)
Item
setIndexName
in class Item
public int encode(ByteBuffer buffer)
protected void appendBodyString(StringBuilder buffer)
Item
([itemName] [body])The body must be appended appended by this method.
appendBodyString
in class Item
Copyright © 2018. All rights reserved.