Package com.yahoo.prelude.query
Class AndSegmentItem
- java.lang.Object
-
- com.yahoo.prelude.query.Item
-
- com.yahoo.prelude.query.CompositeItem
-
- com.yahoo.prelude.query.SegmentItem
-
- com.yahoo.prelude.query.AndSegmentItem
-
- All Implemented Interfaces:
BlockItem
,HasIndexItem
,Cloneable
public class AndSegmentItem extends SegmentItem implements BlockItem
An immutable and'ing of a collection of sub-expressions. It does not extend AndItem to avoid code using instanceof handling it as an AndItem.- 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
Constructors Constructor Description AndSegmentItem(PhraseSegmentItem item)
AndSegmentItem(String rawWord, boolean isFromQuery, boolean stemmed)
AndSegmentItem(String rawWord, String current, boolean isFromQuery, boolean stemmed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIndexName()
Item.ItemType
getItemType()
Return the enumerated type of this item.String
getName()
Returns the name of this itemvoid
setWeight(int w)
Sets the relative importance of this term-
Methods inherited from class com.yahoo.prelude.query.SegmentItem
addItem, addItem, clone, disclose, equals, getNormalized, getNumWords, getOrigin, getRawWord, getSegmentingRule, hashCode, isFromQuery, isFromUser, isLocked, isStemmed, isWords, lock, removeItem, removeItem, setFromUser, setSegmentingRule, stringValue
-
Methods inherited from class com.yahoo.prelude.query.CompositeItem
adding, appendBodyString, encode, encodeThis, encodingArity, ensureNotInSubtree, extractSingleChild, getItem, getItemCount, getItemIndex, getItemIterator, getTermCount, items, setIndexName, setItem, shouldParenthize
-
Methods inherited from class com.yahoo.prelude.query.Item
addAnnotation, appendHeadingString, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hasUniqueID, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, toString, usePositionData
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yahoo.prelude.query.BlockItem
getOrigin, getRawWord, getSegmentingRule, isFromQuery, isStemmed, isWords, stringValue
-
Methods inherited from interface com.yahoo.prelude.query.HasIndexItem
getNumWords
-
-
-
-
Constructor Detail
-
AndSegmentItem
public AndSegmentItem(String rawWord, boolean isFromQuery, boolean stemmed)
-
AndSegmentItem
public AndSegmentItem(String rawWord, String current, boolean isFromQuery, boolean stemmed)
-
AndSegmentItem
public AndSegmentItem(PhraseSegmentItem item)
-
-
Method Detail
-
getItemType
public Item.ItemType getItemType()
Description copied from class:Item
Return the enumerated type of this item.- Specified by:
getItemType
in classItem
-
getIndexName
public String getIndexName()
- Specified by:
getIndexName
in interfaceHasIndexItem
-
-