Class PaginatingSource<T>

java.lang.Object
com.google.gerrit.index.query.PaginatingSource<T>
All Implemented Interfaces:
DataSource<T>, HasCardinality

public class PaginatingSource<T> extends Object implements DataSource<T>
  • Field Details

  • Constructor Details

  • Method Details

    • read

      public ResultSet<T> read()
      Description copied from interface: DataSource
      Returns read from the index and return the results.
      Specified by:
      read in interface DataSource<T>
    • readRaw

      public ResultSet<FieldBundle> readRaw()
      Description copied from interface: DataSource
      Returns read from the index and return the raw results.
      Specified by:
      readRaw in interface DataSource<T>
    • match

      protected boolean match(T object)
      Checks whether the given object matches.
      Parameters:
      object - the object to be matched
      Returns:
      whether the given object matches
    • isMatchable

      protected boolean isMatchable()
    • transformBuffer

      protected List<T> transformBuffer(List<T> buffer)
    • getCardinality

      public int getCardinality()
      Description copied from interface: HasCardinality
      Returns an estimate of the number of results a source can return.
      Specified by:
      getCardinality in interface HasCardinality