class GenericIndexKeyValidator implements Validator<Value[]> {

    @Override
    public void validate( Value[] values )
    {
        int worstCaseSize = worstCaseLength( values );
        if ( worstCaseSize > maxLength )
        {
            int size = actualLength( values );
            if ( size > maxLength )
            {
                throw new IllegalArgumentException( format(
                        "Property value size:%d of %s is too large to index into this particular index. Please see index documentation for limitations.",
                        size, Arrays.toString( values ) ) );
            }
        }
    }

      GenericIndexKeyValidator( int maxLength, Layout<GenericKey,NativeIndexValue> layout );

}