Package org.apache.cassandra.schema
Class DistributedSchema
- java.lang.Object
-
- org.apache.cassandra.schema.DistributedSchema
-
public class DistributedSchema extends java.lang.ObjectImmutable snapshot of the current schema along with its version.
-
-
Field Summary
Fields Modifier and Type Field Description static DistributedSchemaEMPTY
-
Constructor Summary
Constructors Constructor Description DistributedSchema(Keyspaces keyspaces, java.util.UUID version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)KeyspacesgetKeyspaces()java.util.UUIDgetVersion()inthashCode()booleanisEmpty()static java.lang.StringschemaVersionToString(java.util.UUID version)Converts the given schema version to a string.
-
-
-
Field Detail
-
EMPTY
public static final DistributedSchema EMPTY
-
-
Constructor Detail
-
DistributedSchema
public DistributedSchema(Keyspaces keyspaces, java.util.UUID version)
-
-
Method Detail
-
getKeyspaces
public Keyspaces getKeyspaces()
-
isEmpty
public boolean isEmpty()
-
getVersion
public java.util.UUID getVersion()
-
schemaVersionToString
public static java.lang.String schemaVersionToString(java.util.UUID version)
Converts the given schema version to a string. Returnsunknown, ifversionisnullor"(empty)", ifversionrefers to anSchemaConstants.emptyVersionschema.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-