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
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, documentFrequency, explicitSignificance, significance, uniqueID
-
Constructor Summary
ConstructorDescriptionAndSegmentItem
(String rawWord, boolean isFromQuery, boolean stemmed) AndSegmentItem
(String rawWord, String current, boolean isFromQuery, boolean stemmed) -
Method Summary
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, shouldFoldIntoWand, shouldFoldIntoWand, stringValue
Methods inherited from class com.yahoo.prelude.query.CompositeItem
acceptsItemsOfType, adding, appendBodyString, encode, encodeThis, encodingArity, ensureNotInSubtree, extractSingleChild, getItem, getItemCount, getItemIndex, getItemIterator, getTermCount, items, setIndexName, setItem, shouldParenthesize
Methods inherited from class com.yahoo.prelude.query.Item
addAnnotation, appendHeadingString, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hasPrefixMatchSemantics, 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 Details
-
AndSegmentItem
-
AndSegmentItem
-
AndSegmentItem
-
-
Method Details
-
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 -
getIndexName
- Specified by:
getIndexName
in interfaceHasIndexItem
-
setWeight
public void setWeight(int w) Description copied from class:Item
Sets the relative importance of this term
-