Class DistributedSchema

java.lang.Object
org.apache.cassandra.schema.DistributedSchema

public class DistributedSchema extends Object
Immutable snapshot of the current schema along with its version.
  • Field Details

  • Constructor Details

    • DistributedSchema

      public DistributedSchema(Keyspaces keyspaces, UUID version)
  • Method Details

    • getKeyspaces

      public Keyspaces getKeyspaces()
    • isEmpty

      public boolean isEmpty()
    • getVersion

      public UUID getVersion()
    • schemaVersionToString

      public static String schemaVersionToString(UUID version)
      Converts the given schema version to a string. Returns unknown, if version is null or "(empty)", if version refers to an SchemaConstants.emptyVersion schema.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object