Package com.google.gerrit.index.query
Class PaginatingSource<T>
java.lang.Object
com.google.gerrit.index.query.PaginatingSource<T>
- All Implemented Interfaces:
DataSource<T>
,HasCardinality
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an estimate of the number of results a source can return.protected boolean
protected boolean
Checks whether the given object matches.read()
Returns read from the index and return the results.readRaw()
Returns read from the index and return the raw results.transformBuffer
(List<T> buffer)
-
Field Details
-
source
-
-
Constructor Details
-
PaginatingSource
-
-
Method Details
-
read
Description copied from interface:DataSource
Returns read from the index and return the results.- Specified by:
read
in interfaceDataSource<T>
-
readRaw
Description copied from interface:DataSource
Returns read from the index and return the raw results.- Specified by:
readRaw
in interfaceDataSource<T>
-
match
Checks whether the given object matches.- Parameters:
object
- the object to be matched- Returns:
- whether the given object matches
-
isMatchable
protected boolean isMatchable() -
transformBuffer
-
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 interfaceHasCardinality
-