org.apache.lucene.search.vectorhighlight
Class SimpleBoundaryScanner
java.lang.Object
org.apache.lucene.search.vectorhighlight.SimpleBoundaryScanner
- All Implemented Interfaces:
- BoundaryScanner
public class SimpleBoundaryScanner
- extends Object
- implements BoundaryScanner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAX_SCAN
public static final int DEFAULT_MAX_SCAN
- See Also:
- Constant Field Values
DEFAULT_BOUNDARY_CHARS
public static final Character[] DEFAULT_BOUNDARY_CHARS
maxScan
protected int maxScan
boundaryChars
protected Set<Character> boundaryChars
SimpleBoundaryScanner
public SimpleBoundaryScanner()
SimpleBoundaryScanner
public SimpleBoundaryScanner(int maxScan)
SimpleBoundaryScanner
public SimpleBoundaryScanner(Character[] boundaryChars)
SimpleBoundaryScanner
public SimpleBoundaryScanner(int maxScan,
Character[] boundaryChars)
SimpleBoundaryScanner
public SimpleBoundaryScanner(int maxScan,
Set<Character> boundaryChars)
findStartOffset
public int findStartOffset(StringBuilder buffer,
int start)
- Description copied from interface:
BoundaryScanner
- Scan backward to find end offset.
- Specified by:
findStartOffset
in interface BoundaryScanner
- Parameters:
buffer
- scanned objectstart
- start offset to begin
- Returns:
- the found start offset
findEndOffset
public int findEndOffset(StringBuilder buffer,
int start)
- Description copied from interface:
BoundaryScanner
- Scan forward to find start offset.
- Specified by:
findEndOffset
in interface BoundaryScanner
- Parameters:
buffer
- scanned objectstart
- start offset to begin
- Returns:
- the found end offset