Package com.google.gerrit.index
Class QueryOptions
java.lang.Object
com.google.gerrit.index.QueryOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
When set to true, entities that fail to get parsed from the index are replaced with a canonical erroneous record.abstract IndexConfig
config()
static QueryOptions
create
(IndexConfig config, int start, int pageSize, int pageSizeMultiplier, int limit, boolean allowIncompleteResults, Set<String> fields) static QueryOptions
create
(IndexConfig config, int start, int pageSize, int pageSizeMultiplier, int limit, Set<String> fields) static QueryOptions
create
(IndexConfig config, int start, int pageSize, int limit, Set<String> fields) static QueryOptions
create
(IndexConfig config, int start, int limit, Set<String> fields) static QueryOptions
create
(IndexConfig config, int start, Object searchAfter, int pageSize, int pageSizeMultiplier, int limit, boolean allowIncompleteResults, Set<String> fields) static QueryOptions
create
(IndexConfig config, int start, Object searchAfter, int pageSize, int pageSizeMultiplier, int limit, Set<String> fields) abstract com.google.common.collect.ImmutableSet<String>
fields()
filterFields
(Function<QueryOptions, Set<String>> filter) int
abstract int
limit()
abstract int
pageSize()
abstract int
abstract Object
abstract int
start()
withLimit
(int newLimit) withPageSize
(int pageSize) withSearchAfter
(Object newSearchAfter) withStart
(int newStart)
-
Constructor Details
-
QueryOptions
public QueryOptions()
-
-
Method Details
-
create
-
create
public static QueryOptions create(IndexConfig config, int start, int pageSize, int limit, Set<String> fields) -
create
public static QueryOptions create(IndexConfig config, int start, int pageSize, int pageSizeMultiplier, int limit, Set<String> fields) -
create
public static QueryOptions create(IndexConfig config, int start, Object searchAfter, int pageSize, int pageSizeMultiplier, int limit, Set<String> fields) -
create
public static QueryOptions create(IndexConfig config, int start, int pageSize, int pageSizeMultiplier, int limit, boolean allowIncompleteResults, Set<String> fields) -
create
public static QueryOptions create(IndexConfig config, int start, Object searchAfter, int pageSize, int pageSizeMultiplier, int limit, boolean allowIncompleteResults, Set<String> fields) -
convertForBackend
-
config
-
start
public abstract int start() -
searchAfter
-
pageSize
public abstract int pageSize() -
pageSizeMultiplier
public abstract int pageSizeMultiplier() -
limit
public abstract int limit() -
allowIncompleteResults
public abstract boolean allowIncompleteResults()When set to true, entities that fail to get parsed from the index are replaced with a canonical erroneous record. If false, parsing would throw an exception. -
fields
-
withPageSize
-
withLimit
-
withStart
-
withSearchAfter
-
filterFields
-
getLimitBasedOnPaginationType
public int getLimitBasedOnPaginationType()
-