Package com.google.gerrit.index
Class SchemaDefinitions<V>
- java.lang.Object
-
- com.google.gerrit.index.SchemaDefinitions<V>
-
- Direct Known Subclasses:
AccountSchemaDefinitions
,ChangeSchemaDefinitions
,GroupSchemaDefinitions
public abstract class SchemaDefinitions<V> extends Object
Definitions of the various schema versions over a given Gerrit data type.A schema is a description of the fields that are indexed over the given data type. This class contains all the versions of a schema defined over its data type, exposed as a map of version number to schema definition. If you are interested in the classes responsible for backend-specific runtime implementations, see the implementations of
IndexDefinition
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SchemaDefinitions(String name, Class<V> valueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema<V>
get(int version)
Schema<V>
getLatest()
String
getName()
Schema<V>
getPrevious()
com.google.common.collect.ImmutableSortedMap<Integer,Schema<V>>
getSchemas()
-