org.alfresco.repo.search.impl.lucene.query
Class SelfAxisStructuredFieldPosition

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.query.AbstractStructuredFieldPosition
      extended by org.alfresco.repo.search.impl.lucene.query.SelfAxisStructuredFieldPosition
All Implemented Interfaces:
StructuredFieldPosition

public class SelfAxisStructuredFieldPosition
extends AbstractStructuredFieldPosition


Constructor Summary
SelfAxisStructuredFieldPosition()
           
 
Method Summary
 java.lang.String getDescription()
           
 boolean isTerminal()
          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.
 boolean linkSelf()
          Normally paths would require onlt parent chaining.
 int matches(int start, int end, int offset)
          Does this element match
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.query.AbstractStructuredFieldPosition
allowslinkingByParent, allowsLinkingBySelf, equals, getCachingTermPositions, getPosition, getTermText, hashCode, isAbsolute, isDescendant, isRelative, linkParent, matchesAll, setCachingTermPositions, setTerminal, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelfAxisStructuredFieldPosition

public SelfAxisStructuredFieldPosition()
Method Detail

matches

public int matches(int start,
                   int end,
                   int offset)
            throws java.io.IOException
Description copied from interface: StructuredFieldPosition
Does this element match

Parameters:
start - - the start postion of the paths terms
end - - the end position of the paths terms
offset - - 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:
getDescription in class AbstractStructuredFieldPosition

linkSelf

public boolean linkSelf()
Description copied from interface: StructuredFieldPosition
Normally paths would require onlt parent chaining. for some it is parent and child chaining.

Specified by:
linkSelf in interface StructuredFieldPosition
Overrides:
linkSelf in class AbstractStructuredFieldPosition
Returns:

isTerminal

public boolean isTerminal()
Description copied from interface: StructuredFieldPosition
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. If false, it will effectively allow prefix mathces for the likes of descendant-and-below style queries.

Specified by:
isTerminal in interface StructuredFieldPosition
Overrides:
isTerminal in class AbstractStructuredFieldPosition
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.