Class FTMatch

All Implemented Interfaces:
Iterable<FTStringMatch>

public final class FTMatch extends ObjectList<FTStringMatch,FTMatch>
Match full-text container, referencing several FTStringMatch instances.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • FTMatch

      public FTMatch()
      Constructor.
    • FTMatch

      public FTMatch(long capacity)
      Constructor with initial capacity.
      Parameters:
      capacity - array capacity
  • Method Details

    • notin

      public boolean notin(FTMatch ftm)
      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

      protected FTStringMatch[] newArray(int s)
      Description copied from class: ObjectList
      Creates a resized array.
      Specified by:
      newArray in class ObjectList<FTStringMatch,FTMatch>
      Parameters:
      s - size
      Returns:
      array