Class Validation


  • public abstract class Validation
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Validation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void validateKey​(TableMetadata metadata, java.nio.ByteBuffer key)
      Validates a (full serialized) partition key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Validation

        public Validation()
    • 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 provided key is invalid.