Package org.alfresco.solr.query
Class AbsoluteStructuredFieldPosition
java.lang.Object
org.alfresco.solr.query.AbstractStructuredFieldPosition
org.alfresco.solr.query.AbsoluteStructuredFieldPosition
- All Implemented Interfaces:
StructuredFieldPosition
This class patches a term at a specified location.
- Author:
- andyh
-
Constructor Summary
ConstructorsConstructorDescriptionAbsoluteStructuredFieldPosition(String termText, int position) Search for a term at the specified position. -
Method Summary
Methods inherited from class org.alfresco.solr.query.AbstractStructuredFieldPosition
allowslinkingByParent, allowsLinkingBySelf, getCachingTermPositions, getTermText, isAbsolute, isDescendant, isRelative, isTerminal, linkParent, linkSelf, matchesAll, setCachingTermPositions, setTerminal, toString
-
Constructor Details
-
AbsoluteStructuredFieldPosition
Search for a term at the specified position.
-
-
Method Details
-
matches
Description 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
-
getPosition
public int getPosition()Description copied from interface:StructuredFieldPositionIf absolute return the position. If relative we could compute the position knowing the previous term unless this element is preceded by a descendat and below style element- Specified by:
getPositionin interfaceStructuredFieldPosition- Overrides:
getPositionin classAbstractStructuredFieldPosition- Returns:
- int
-
getDescription
- Specified by:
getDescriptionin classAbstractStructuredFieldPosition
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStructuredFieldPosition
-
equals
- Overrides:
equalsin classAbstractStructuredFieldPosition
-