Code example for ByteBuffer

Methods: flip, putLong

0
    public static final String CF2 = "Standard1";
    public static final ByteBuffer COLUMN = ByteBufferUtil.bytes("birthdate");
    public static final ByteBuffer VALUE = ByteBuffer.allocate(8);
    static 
    { 
        VALUE.putLong(20101229);
        VALUE.flip();
    } 
 
    @Test 
    public void testCleanup() throws IOException, ExecutionException, InterruptedException, ConfigurationException 
    { 
        StorageService.instance.initServer(); 
 
        Table table = Table.open(TABLE1);
        ColumnFamilyStore cfs = table.getColumnFamilyStore(CF2);
 
        List<Row> rows;
 
        // insert data and verify we get it back w/ range query 
        fillCF(cfs, LOOPS);