@Test public void longConvertedToBytesIsValidTimestampData() { assertThat(CassandraTimestampUtils.isValidTimestampData(PtBytes.toBytes(1234567L))).isTrue(); assertThat(CassandraTimestampUtils.isValidTimestampData(new byte[Long.BYTES])).isTrue(); }
public static boolean isValidTimestampData(byte[] data) { return data != null && data.length == Long.BYTES; }
CassandraTimestampUtils { public static boolean isValidTimestampData(byte[] data) { return data != null && data.length == Long.BYTES; } }
CassandraTimestampUtils { public static boolean isValidTimestampData(byte[] data) { return data != null && data.length == Long.BYTES; } private  CassandraTimestampUtils(); }
CassandraTimestampUtils { public static boolean isValidTimestampData(byte[] data) { return data != null && data.length == Long.BYTES; } private  CassandraTimestampUtils(); static CqlQuery constructCheckAndSetMultipleQuery(Map<String, Pair<byte[], byte[]>> checkAndSetRequest); static boolean isValidTimestampData(byte[] data); static CqlQuery constructSelectFromTimestampTableQuery(); static Map<String, byte[]> getValuesFromSelectionResult(CqlResult result); static void verifyCompatible(CqlResult casResult, Map<String, Pair<byte[], byte[]>> casMap); }
CassandraTimestampUtils { public static boolean isValidTimestampData(byte[] data) { return data != null && data.length == Long.BYTES; } private  CassandraTimestampUtils(); static CqlQuery constructCheckAndSetMultipleQuery(Map<String, Pair<byte[], byte[]>> checkAndSetRequest); static boolean isValidTimestampData(byte[] data); static CqlQuery constructSelectFromTimestampTableQuery(); static Map<String, byte[]> getValuesFromSelectionResult(CqlResult result); static void verifyCompatible(CqlResult casResult, Map<String, Pair<byte[], byte[]>> casMap); static final String ROW_AND_COLUMN_NAME; static final String BACKUP_COLUMN_NAME; static final ByteString INVALIDATED_VALUE; static final long INITIAL_VALUE; }