Package org.alfresco.solr.query
Class RelativeStructuredFieldPosition
- java.lang.Object
-
- org.alfresco.solr.query.AbstractStructuredFieldPosition
-
- org.alfresco.solr.query.RelativeStructuredFieldPosition
-
- All Implemented Interfaces:
StructuredFieldPosition
public class RelativeStructuredFieldPosition extends AbstractStructuredFieldPosition
Search for a term relative to the last one found.- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description RelativeStructuredFieldPosition()RelativeStructuredFieldPosition(String termText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()inthashCode()intmatches(int start, int end, int offset)Does this element match-
Methods inherited from class org.alfresco.solr.query.AbstractStructuredFieldPosition
allowslinkingByParent, allowsLinkingBySelf, getCachingTermPositions, getPosition, getTermText, isAbsolute, isDescendant, isRelative, isTerminal, linkParent, linkSelf, matchesAll, setCachingTermPositions, setTerminal, toString
-
-
-
-
Constructor Detail
-
RelativeStructuredFieldPosition
public RelativeStructuredFieldPosition(String termText)
-
RelativeStructuredFieldPosition
public RelativeStructuredFieldPosition()
-
-
Method Detail
-
matches
public int matches(int start, int end, int offset) throws IOExceptionDescription copied from interface:StructuredFieldPositionDoes this element match- Parameters:
start- - the start postion of the paths termsend- - the end position of the paths termsoffset- - the current offset in the path- Returns:
- returns the next match position (usually offset + 1) or -1 if it does not match.
- Throws:
IOException
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classAbstractStructuredFieldPosition
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractStructuredFieldPosition
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractStructuredFieldPosition
-
-