Package org.apache.cassandra.cql3
Class Validation
java.lang.Object
org.apache.cassandra.cql3.Validation
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateKey(TableMetadata metadata, ByteBuffer key) Validates a (full serialized) partition key.
-
Constructor Details
-
Validation
public Validation()
-
-
Method Details
-
validateKey
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 providedkeyis invalid.
-