Package org.apache.cassandra.io

Examples of org.apache.cassandra.io.DataOutputBuffer.writeUTF()


        DataOutputBuffer dob = new DataOutputBuffer();
        dob.writeBoolean(rangeCompletedLocally);

        for (String key : keys)
        {
            dob.writeUTF(key);
        }
        byte[] data = Arrays.copyOf(dob.getData(), dob.getLength());
        return originalMessage.getReply(FBUtilities.getLocalAddress(), data);
    }
View Full Code Here


        DataOutputBuffer dob = new DataOutputBuffer();
        for (String key : keys)
        {
            try
            {
                dob.writeUTF(key);
            }
            catch (IOException e)
            {
                throw new RuntimeException(e);
            }
View Full Code Here

    private static void dumpBlockIndex(String key, long position, long size, RandomAccessFile raf) throws IOException
    {
        DataOutputBuffer bufOut = new DataOutputBuffer();                      
        /* Number of keys in this block */
        bufOut.writeInt(1);
        bufOut.writeUTF(key);
        bufOut.writeLong(position);
        bufOut.writeLong(size);
       
        /* Write out the block index. */
        raf.writeUTF(SSTable.blockIndexKey_);
View Full Code Here

        DataOutputBuffer dob = new DataOutputBuffer();
        dob.writeBoolean(rangeCompletedLocally);

        for (String key : keys)
        {
            dob.writeUTF(key);
        }
        byte[] data = Arrays.copyOf(dob.getData(), dob.getLength());
        return originalMessage.getReply(StorageService.getLocalStorageEndPoint(), data);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.