dcapwell commented on code in PR #2310:
URL: https://github.com/apache/cassandra/pull/2310#discussion_r1223263804


##########
src/java/org/apache/cassandra/db/marshal/AbstractType.java:
##########
@@ -478,6 +493,21 @@ public final boolean isValueLengthFixed()
         return valueLengthIfFixed() != VARIABLE_LENGTH;
     }
 
+    public boolean allowsEmpty()

Review Comment:
   Added
   
   ```
       /**
        * Defines if the type allows an empty set of bytes ({@code new 
byte[0]}) as valid input.  The {@link #validate(Object, ValueAccessor)}
        * and {@link #compose(Object, ValueAccessor)} methods must allow empty 
bytes when this returns true, and must reject empty bytes
        * when this is false.
        * <p/>
        * As of this writing, the main user of this API is for testing to know 
what types allow empty values and what types don't,
        * so that the data that gets generated understands when {@link 
ByteBufferUtil#EMPTY_BYTE_BUFFER} is allowed as valid data.
        */
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to