@Test public void createColumnForDeleteCreatesItWithSpecifiedCassandraTimestamp() { assertThat(CassandraKeyValueServices.createColumnForDelete( CELL, Value.create(PtBytes.EMPTY_BYTE_ARRAY, 1000), 2000) .getTimestamp()) .isEqualTo(2000); }
static Column createColumnForDelete(Cell cell, Value value, long cassandraTimestamp) { Preconditions.checkState( Arrays.equals(value.getContents(), PtBytes.EMPTY_BYTE_ARRAY), "Attempted to createColumnForDelete on a non-delete value, for cell %s and value %s", cell, value); return createColumnAtSpecificCassandraTimestamp(cell, value, cassandraTimestamp); }
CassandraKeyValueServices { static Column createColumnForDelete(Cell cell, Value value, long cassandraTimestamp) { Preconditions.checkState( Arrays.equals(value.getContents(), PtBytes.EMPTY_BYTE_ARRAY), "Attempted to createColumnForDelete on a non-delete value, for cell %s and value %s", cell, value); return createColumnAtSpecificCassandraTimestamp(cell, value, cassandraTimestamp); } }
CassandraKeyValueServices { static Column createColumnForDelete(Cell cell, Value value, long cassandraTimestamp) { Preconditions.checkState( Arrays.equals(value.getContents(), PtBytes.EMPTY_BYTE_ARRAY), "Attempted to createColumnForDelete on a non-delete value, for cell %s and value %s", cell, value); return createColumnAtSpecificCassandraTimestamp(cell, value, cassandraTimestamp); } private  CassandraKeyValueServices(); }
CassandraKeyValueServices { static Column createColumnForDelete(Cell cell, Value value, long cassandraTimestamp) { Preconditions.checkState( Arrays.equals(value.getContents(), PtBytes.EMPTY_BYTE_ARRAY), "Attempted to createColumnForDelete on a non-delete value, for cell %s and value %s", cell, value); return createColumnAtSpecificCassandraTimestamp(cell, value, cassandraTimestamp); } private  CassandraKeyValueServices(); static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimestamp); static Pair<byte[], Long> decomposeName(Column column); static byte[] getBytesFromByteBuffer(ByteBuffer buffer); }
CassandraKeyValueServices { static Column createColumnForDelete(Cell cell, Value value, long cassandraTimestamp) { Preconditions.checkState( Arrays.equals(value.getContents(), PtBytes.EMPTY_BYTE_ARRAY), "Attempted to createColumnForDelete on a non-delete value, for cell %s and value %s", cell, value); return createColumnAtSpecificCassandraTimestamp(cell, value, cassandraTimestamp); } private  CassandraKeyValueServices(); static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimestamp); static Pair<byte[], Long> decomposeName(Column column); static byte[] getBytesFromByteBuffer(ByteBuffer buffer); static final String VERSION_UNREACHABLE; static final byte[] METADATA_COL; }