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
ConstructorsConstructorDescriptionAndSegmentItem(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, setStemmed, shouldFoldIntoWand, shouldFoldIntoWand, stringValueMethods inherited from class com.yahoo.prelude.query.CompositeItem
acceptsItemsOfType, adding, appendBodyString, encode, encodeThis, encodingArity, ensureNotInSubtree, extractSingleChild, getItem, getItemCount, getItemIndex, getItemIterator, getTermCount, items, setIndexName, setItem, shouldParenthesizeMethods 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, usePositionDataMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.prelude.query.BlockItem
getOrigin, getRawWord, getSegmentingRule, isFromQuery, isStemmed, isWords, stringValueMethods inherited from interface com.yahoo.prelude.query.HasIndexItem
getNumWords
-
Constructor Details
-
AndSegmentItem
-
AndSegmentItem
-
AndSegmentItem
-
-
Method Details
-
getItemType
Description copied from class:ItemReturn the enumerated type of this item.- Specified by:
getItemTypein classItem
-
getName
Description copied from class:ItemReturns the name of this item -
getIndexName
- Specified by:
getIndexNamein interfaceHasIndexItem
-
setWeight
public void setWeight(int w) Description copied from class:ItemSets the relative importance of this term
-