Package org.alfresco.solr.query
Class SelfAxisStructuredFieldPosition
- java.lang.Object
-
- org.alfresco.solr.query.AbstractStructuredFieldPosition
-
- org.alfresco.solr.query.SelfAxisStructuredFieldPosition
-
- All Implemented Interfaces:
StructuredFieldPosition
public class SelfAxisStructuredFieldPosition extends AbstractStructuredFieldPosition
-
-
Constructor Summary
Constructors Constructor Description SelfAxisStructuredFieldPosition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()booleanisTerminal()If 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 match-
Methods inherited from class org.alfresco.solr.query.AbstractStructuredFieldPosition
allowslinkingByParent, allowsLinkingBySelf, equals, getCachingTermPositions, getPosition, getTermText, hashCode, isAbsolute, isDescendant, isRelative, linkParent, matchesAll, setCachingTermPositions, setTerminal, toString
-
-
-
-
Method Detail
-
matches
public int matches(int start, int end, int offset) throws java.io.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:
java.io.IOException
-
getDescription
public java.lang.String 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
-
-