Package com.yahoo.prelude.query
Class MarkerWordItem
- All Implemented Interfaces:
BlockItem
,HasIndexItem
,IndexedItem
,TaggableItem
,Cloneable
Special words known by the index used for marking things.
The reserved word itself is not public, while a symbol representation is.
- Author:
- bratseth
-
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, explicitSignificance, significance, uniqueID
-
Method Summary
Modifier and TypeMethodDescriptionstatic MarkerWordItem
Creates a special word item which marks the end of a host name matching the default indexstatic MarkerWordItem
createEndOfHost
(String indexName) Creates a special word item which marks the end of a host namestatic MarkerWordItem
Creates a special word item which marks the start of a host name, matching the default indexstatic MarkerWordItem
createStartOfHost
(String indexName) Creates a special word item which marks the start of a host namevoid
boolean
Returns whether this item is of the same class and contains the same state as the given item.protected String
Returns the marker word for encodingint
hashCode()
boolean
boolean
Methods inherited from class com.yahoo.prelude.query.WordItem
appendHeadingString, encodeThis, getIndexedString, getItemType, getName, getNumWords, getRawWord, getSegmentIndex, getWord, isFromSegmented, isLowercased, isStemmed, isWords, setFromSegmented, setLowercased, setSegmentIndex, setStemmed, setValue, setWord, setWords, stringValue
Methods inherited from class com.yahoo.prelude.query.TermItem
appendBodyString, encode, getOrigin, getSegmentingRule, getTermCount, isFromQuery, isNormalizable, setFromQuery, setNormalizable, setOrigin, setSegmentingRule
Methods inherited from class com.yahoo.prelude.query.SimpleIndexedItem
appendIndexString, getIndexName, setIndexName
Methods inherited from class com.yahoo.prelude.query.SimpleTaggableItem
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
Methods inherited from class com.yahoo.prelude.query.Item
addAnnotation, clone, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hasPrefixMatchSemantics, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthesize, toString, usePositionData
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.prelude.query.HasIndexItem
getIndexName
-
Method Details
-
isStartAnchor
public boolean isStartAnchor() -
isEndAnchor
public boolean isEndAnchor() -
getEncodedWord
Returns the marker word for encoding- Overrides:
getEncodedWord
in classWordItem
-
equals
Description copied from class:Item
Returns whether this item is of the same class and contains the same state as the given item. -
hashCode
public int hashCode() -
disclose
-
createStartOfHost
Creates a special word item which marks the start of a host name -
createStartOfHost
Creates a special word item which marks the start of a host name, matching the default index -
createEndOfHost
Creates a special word item which marks the end of a host name -
createEndOfHost
Creates a special word item which marks the end of a host name matching the default index
-