Class SchemaKeyspace

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

@NotThreadSafe public final class SchemaKeyspace extends 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 of SchemaUpdateHandler in synchronized blocks.
  • Method Details

    • metadata

      public static KeyspaceMetadata metadata()
    • calculateSchemaDigest

      public static 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.
    • addTableParamsToRowBuilder

      public static void addTableParamsToRowBuilder(TableParams params, Row.SimpleBuilder builder)
    • fetchNonSystemKeyspaces

      public static Keyspaces fetchNonSystemKeyspaces()
    • createColumnFromRow

      public static ColumnMetadata createColumnFromRow(UntypedResultSet.Row row, Types types, UserFunctions functions)