Package com.google.gerrit.index
Class Schema.Builder<T>
java.lang.Object
com.google.gerrit.index.Schema.Builder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIndexedFields
(com.google.common.collect.ImmutableList<IndexedField<T, ?>> indexedFields) final Schema.Builder<T>
addIndexedFields
(IndexedField<T, ?>... fields) addSearchSpecs
(com.google.common.collect.ImmutableList<IndexedField<T, ?>.SearchSpec> searchSpecs) final Schema.Builder<T>
addSearchSpecs
(IndexedField<T, ?>.SearchSpec... searchSpecs) build()
final Schema.Builder<T>
remove
(IndexedField<T, ?>... indexedFields) final Schema.Builder<T>
remove
(IndexedField<T, ?>.SearchSpec... searchSpecs) version
(int version)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
-
add
-
addSearchSpecs
@SafeVarargs @CanIgnoreReturnValue public final Schema.Builder<T> addSearchSpecs(IndexedField<T, ?>.SearchSpec... searchSpecs) -
addSearchSpecs
@CanIgnoreReturnValue public Schema.Builder<T> addSearchSpecs(com.google.common.collect.ImmutableList<IndexedField<T, ?>.SearchSpec> searchSpecs) -
addIndexedFields
@SafeVarargs @CanIgnoreReturnValue public final Schema.Builder<T> addIndexedFields(IndexedField<T, ?>... fields) -
addIndexedFields
@CanIgnoreReturnValue public Schema.Builder<T> addIndexedFields(com.google.common.collect.ImmutableList<IndexedField<T, ?>> indexedFields) -
remove
@SafeVarargs @CanIgnoreReturnValue public final Schema.Builder<T> remove(IndexedField<T, ?>.SearchSpec... searchSpecs) -
remove
@SafeVarargs @CanIgnoreReturnValue public final Schema.Builder<T> remove(IndexedField<T, ?>... indexedFields) -
build
-