Package com.google.gerrit.index
Class QueryOptions
- java.lang.Object
-
- com.google.gerrit.index.QueryOptions
-
public abstract class QueryOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryOptions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract IndexConfig
config()
QueryOptions
convertForBackend()
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, Set<String> fields)
abstract com.google.common.collect.ImmutableSet<String>
fields()
QueryOptions
filterFields(Function<QueryOptions,Set<String>> filter)
abstract int
limit()
abstract int
pageSize()
abstract int
pageSizeMultiplier()
abstract Object
searchAfter()
abstract int
start()
QueryOptions
withLimit(int newLimit)
QueryOptions
withPageSize(int pageSize)
QueryOptions
withSearchAfter(Object newSearchAfter)
QueryOptions
withStart(int newStart)
-
-
-
Method Detail
-
create
public static QueryOptions create(IndexConfig config, int start, int limit, Set<String> fields)
-
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)
-
convertForBackend
public QueryOptions convertForBackend()
-
config
public abstract IndexConfig config()
-
start
public abstract int start()
-
searchAfter
public abstract Object searchAfter()
-
pageSize
public abstract int pageSize()
-
pageSizeMultiplier
public abstract int pageSizeMultiplier()
-
limit
public abstract int limit()
-
fields
public abstract com.google.common.collect.ImmutableSet<String> fields()
-
withPageSize
public QueryOptions withPageSize(int pageSize)
-
withLimit
public QueryOptions withLimit(int newLimit)
-
withStart
public QueryOptions withStart(int newStart)
-
withSearchAfter
public QueryOptions withSearchAfter(Object newSearchAfter)
-
filterFields
public QueryOptions filterFields(Function<QueryOptions,Set<String>> filter)
-
-