Class 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 Detail

      • SchemaDefinitions

        protected SchemaDefinitions​(String name,
                                    Class<V> valueClass)
    • Method Detail

      • getName

        public final String getName()
      • getSchemas

        public final com.google.common.collect.ImmutableSortedMap<Integer,​Schema<V>> getSchemas()
      • get

        public final Schema<V> get​(int version)
      • getLatest

        public final Schema<V> getLatest()
      • getPrevious

        public final Schema<V> getPrevious()