Package org.basex.query.util.ft
Class FTMatch
- All Implemented Interfaces:
Iterable<FTStringMatch>
Match full-text container, referencing several
FTStringMatch instances.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.util.list.ObjectList
listFields inherited from class org.basex.util.list.ElementList
factor, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FTStringMatch[]newArray(int s) Creates a resized array.booleanChecks if the full-text match is not part of the specified match.voidsort()Sorts the matches by their start and end positions.Methods inherited from class org.basex.util.list.ObjectList
add, add, add, addUnique, contains, equals, equals, finish, get, insert, iterator, next, peek, pop, push, remove, removeAll, removeAll, set, sort, toArray, toString, uniqueMethods inherited from class org.basex.util.list.ElementList
isEmpty, newCapacity, newCapacity, reset, size, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FTMatch
public FTMatch()Constructor. -
FTMatch
public FTMatch(long capacity) Constructor with initial capacity.- Parameters:
capacity- array capacity
-
-
Method Details
-
notin
Checks if the full-text match is not part of the specified match.- Parameters:
ftm- match to be checked- Returns:
- result of check
-
sort
public void sort()Sorts the matches by their start and end positions. -
newArray
Description copied from class:ObjectListCreates a resized array.- Specified by:
newArrayin classObjectList<FTStringMatch,FTMatch> - Parameters:
s- size- Returns:
- array
-