Package org.apache.cassandra.schema
Class SchemaKeyspace
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaKeyspace
-
@NotThreadSafe public final class SchemaKeyspace extends java.lang.Object
system_schema.* tables and methods for manipulating them. Please notice this class is _not_ thread safe and all methods which reads or updates the data in schema keyspace should be accessed only from the implementation ofSchemaUpdateHandler
in synchronized blocks.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.UUID
calculateSchemaDigest()
Read schema from system keyspace and calculate MD5 digest of every row, resulting digest will be converted into UUID which would act as content-based version of the schema.static ColumnMetadata
createColumnFromRow(UntypedResultSet.Row row, Types types, UserFunctions functions)
static Keyspaces
fetchNonSystemKeyspaces()
static KeyspaceMetadata
metadata()
-
-
-
Method Detail
-
metadata
public static KeyspaceMetadata metadata()
-
calculateSchemaDigest
public static java.util.UUID calculateSchemaDigest()
Read schema from system keyspace and calculate MD5 digest of every row, resulting digest will be converted into UUID which would act as content-based version of the schema.
-
fetchNonSystemKeyspaces
public static Keyspaces fetchNonSystemKeyspaces()
-
createColumnFromRow
public static ColumnMetadata createColumnFromRow(UntypedResultSet.Row row, Types types, UserFunctions functions)
-
-