Package org.apache.cassandra.schema
Class DistributedSchema
- java.lang.Object
-
- org.apache.cassandra.schema.DistributedSchema
-
public class DistributedSchema extends java.lang.Object
Immutable snapshot of the current schema along with its version.
-
-
Field Summary
Fields Modifier and Type Field Description static DistributedSchema
EMPTY
-
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 boolean
equals(java.lang.Object o)
Keyspaces
getKeyspaces()
java.util.UUID
getVersion()
int
hashCode()
boolean
isEmpty()
static java.lang.String
schemaVersionToString(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
, ifversion
isnull
or"(empty)"
, ifversion
refers to anSchemaConstants.emptyVersion
schema.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-