Class Validation

java.lang.Object
org.apache.cassandra.cql3.Validation

public abstract class Validation extends Object
A collection of static validation functions reused across statements. Note: this hosts functions that were historically in ThriftValidation, but it's not necessary clear that this is the best place to have this (this is certainly not horrible either though).
  • Constructor Details

    • Validation

      public Validation()
  • Method Details

    • validateKey

      public static void validateKey(TableMetadata metadata, ByteBuffer key)
      Validates a (full serialized) partition key.
      Parameters:
      metadata - the metadata for the table of which to check the key.
      key - the serialized partition key to check.
      Throws:
      InvalidRequestException - if the provided key is invalid.