public abstract class CompositeIndexedItem extends CompositeTaggableItem implements IndexedItem
Item.ItemCreator, Item.ItemType
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
Constructor and Description |
---|
CompositeIndexedItem() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendIndexString(StringBuilder buffer)
Appends the index prefix if necessary
|
void |
disclose(Discloser discloser) |
protected void |
encodeThis(ByteBuffer buffer)
Encodes just this item, not it's usual subitems, to the given buffer.
|
boolean |
equals(Object object)
Returns whether this item is of the same class and
contains the same state as the given item
|
abstract String |
getIndexedString()
Return the searchable term contents of this item.
|
String |
getIndexName()
The name of the index this belongs to, or "" (never null) if not specified
|
int |
hashCode() |
void |
setIndexName(String index)
Sets the name of the index to search
|
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
adding, addItem, addItem, appendBodyString, clone, encode, encodingArity, ensureNotInSubtree, getItem, getItemCount, getItemIndex, getItemIterator, getTermCount, isLocked, lock, removeItem, removeItem, setItem, shouldParenthize
addAnnotation, appendHeadingString, getAnnotation, getBytes, getCode, getCreator, getItemType, getLabel, getLanguage, getName, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, toString, usePositionData
finalize, getClass, notify, notifyAll, wait, wait, wait
getNumWords
@NonNull public String getIndexName()
getIndexName
in interface HasIndexItem
protected void encodeThis(ByteBuffer buffer)
CompositeItem
encodeThis
in class CompositeItem
public void setIndexName(String index)
setIndexName
in interface IndexedItem
setIndexName
in class CompositeItem
protected void appendIndexString(StringBuilder buffer)
public boolean equals(Object object)
CompositeItem
equals
in class CompositeItem
public int hashCode()
hashCode
in class CompositeItem
public abstract String getIndexedString()
IndexedItem
getIndexedString
in interface IndexedItem
public void disclose(Discloser discloser)
disclose
in class CompositeItem
Copyright © 2018. All rights reserved.