Package org.alfresco.solr.query
Class SelfAxisStructuredFieldPosition
java.lang.Object
org.alfresco.solr.query.AbstractStructuredFieldPosition
org.alfresco.solr.query.SelfAxisStructuredFieldPosition
- All Implemented Interfaces:
StructuredFieldPosition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf this position is last in the chain and it is terminal it will ensure it is an exact match for the length of the chain found.booleanlinkSelf()Normally paths would require onlt parent chaining.intmatches(int start, int end, int offset) Does this element matchMethods inherited from class org.alfresco.solr.query.AbstractStructuredFieldPosition
allowslinkingByParent, allowsLinkingBySelf, equals, getCachingTermPositions, getPosition, getTermText, hashCode, isAbsolute, isDescendant, isRelative, linkParent, matchesAll, setCachingTermPositions, setTerminal, toString
-
Constructor Details
-
SelfAxisStructuredFieldPosition
public SelfAxisStructuredFieldPosition()
-
-
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
-
getDescription
- Specified by:
getDescriptionin classAbstractStructuredFieldPosition
-
linkSelf
public boolean linkSelf()Description copied from interface:StructuredFieldPositionNormally paths would require onlt parent chaining. for some it is parent and child chaining.- Specified by:
linkSelfin interfaceStructuredFieldPosition- Overrides:
linkSelfin classAbstractStructuredFieldPosition- Returns:
- boolean
-
isTerminal
public boolean isTerminal()Description copied from interface:StructuredFieldPositionIf this position is last in the chain and it is terminal it will ensure it is an exact match for the length of the chain found. If false, it will effectively allow prefix mathces for the likes of descendant-and-below style queries.- Specified by:
isTerminalin interfaceStructuredFieldPosition- Overrides:
isTerminalin classAbstractStructuredFieldPosition- Returns:
- boolean
-