Package org.apache.cassandra.cql3
Class Validation
- java.lang.Object
-
- org.apache.cassandra.cql3.Validation
-
public abstract class Validation extends java.lang.ObjectA 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 Constructor Description Validation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidateKey(TableMetadata metadata, java.nio.ByteBuffer key)Validates a (full serialized) partition key.
-
-
-
Method Detail
-
validateKey
public static void validateKey(TableMetadata metadata, java.nio.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 providedkeyis invalid.
-
-