Package com.yahoo.prelude.query
Class RegExpItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.SimpleTaggableItem
com.yahoo.prelude.query.SimpleIndexedItem
com.yahoo.prelude.query.TermItem
com.yahoo.prelude.query.RegExpItem
- All Implemented Interfaces:
BlockItem
,HasIndexItem
,IndexedItem
,TaggableItem
,Cloneable
Match a field with the contained regular expression.
- 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, explicitSignificance, significance, uniqueID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
encodeThis
(ByteBuffer buffer) boolean
Returns whether this item is of the same class and contains the same state as the given item.Return the searchable term contents of this item.Return the enumerated type of this item.getName()
Returns the name of this itemint
Returns how many phrase words does this item containReturns the raw form of the text leading to this term, exactly as received, including original casingint
hashCode()
boolean
boolean
isWords()
Returns whether this item represents normal textvoid
Sets the value of this item from a string.Returns the value of this term as a stringtoString()
Returns the canonical query language string of this item.Methods inherited from class com.yahoo.prelude.query.TermItem
appendBodyString, disclose, 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, appendHeadingString, clone, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthesize, 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
-
Constructor Details
-
RegExpItem
-
-
Method Details
-
stringValue
Description copied from interface:BlockItem
Returns the value of this term as a string -
isStemmed
public boolean isStemmed() -
getNumWords
public int getNumWords()Description copied from interface:HasIndexItem
Returns how many phrase words does this item contain -
setValue
Description copied from class:TermItem
Sets the value of this item from a string. -
getRawWord
Description copied from class:TermItem
Returns the raw form of the text leading to this term, exactly as received, including original casing- Specified by:
getRawWord
in interfaceBlockItem
- Specified by:
getRawWord
in classTermItem
-
isWords
public boolean isWords()Description copied from interface:BlockItem
Returns whether this item represents normal text -
getIndexedString
Description copied from interface:IndexedItem
Return the searchable term contents of this item.- Specified by:
getIndexedString
in interfaceIndexedItem
- Specified by:
getIndexedString
in classSimpleIndexedItem
- Returns:
- a string representation of what is presumably stored in an index which will match this item
-
getItemType
Description copied from class:Item
Return the enumerated type of this item.- Specified by:
getItemType
in classItem
-
getName
Description copied from class:Item
Returns the name of this item -
encodeThis
- Overrides:
encodeThis
in classSimpleIndexedItem
-
getRegexp
-
toString
Description copied from class:Item
Returns the canonical query language string of this item. The canonical language represent an item by the string([itemName] [body])
where the body may recursively be other items. -
hashCode
public int hashCode() -
equals
Description copied from class:Item
Returns whether this item is of the same class and contains the same state as the given item.
-