Package com.google.gerrit.index
Class IndexConfig
- java.lang.Object
-
- com.google.gerrit.index.IndexConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IndexConfig.Builder
-
Constructor Summary
Constructors Constructor Description IndexConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static IndexConfig.Builder
builder()
static IndexConfig
createDefault()
static IndexConfig.Builder
fromConfig(org.eclipse.jgit.lib.Config cfg)
abstract int
maxLimit()
Returns maximum limit supported by the underlying index, or limited for performance reasons.abstract int
maxPages()
Returns maximum number of pages (limit / start) supported by the underlying index, or limited for performance reasons.abstract int
maxPageSize()
Returns maximum allowed limit when repeating index queries to obtain the next set of results.abstract int
maxTerms()
Returns maximum number of total index query terms supported by the underlying index, or limited for performance reasons.abstract int
pageSizeMultiplier()
Returns multiplier to be used to determine the limit when queries are repeated to obtain the next set of results.abstract PaginationType
paginationType()
Returns pagination type to use when index queries are repeated to obtain the next set of results.abstract boolean
separateChangeSubIndexes()
Returns whether different subsets of changes may be stored in different physical sub-indexes.abstract String
type()
Returns index type.
-
-
-
Method Detail
-
createDefault
public static IndexConfig createDefault()
-
fromConfig
public static IndexConfig.Builder fromConfig(org.eclipse.jgit.lib.Config cfg)
-
builder
public static IndexConfig.Builder builder()
-
maxLimit
public abstract int maxLimit()
Returns maximum limit supported by the underlying index, or limited for performance reasons.
-
maxPages
public abstract int maxPages()
Returns maximum number of pages (limit / start) supported by the underlying index, or limited for performance reasons.
-
maxTerms
public abstract int maxTerms()
Returns maximum number of total index query terms supported by the underlying index, or limited for performance reasons.
-
type
public abstract String type()
Returns index type.
-
separateChangeSubIndexes
public abstract boolean separateChangeSubIndexes()
Returns whether different subsets of changes may be stored in different physical sub-indexes.
-
paginationType
public abstract PaginationType paginationType()
Returns pagination type to use when index queries are repeated to obtain the next set of results.
-
pageSizeMultiplier
public abstract int pageSizeMultiplier()
Returns multiplier to be used to determine the limit when queries are repeated to obtain the next set of results.
-
maxPageSize
public abstract int maxPageSize()
Returns maximum allowed limit when repeating index queries to obtain the next set of results.
-
-