Package org.hypertable.thrift

Examples of org.hypertable.thrift.SerializedCellsWriter


            System.out.println("Setting up put for key: " + key);
        }
       
        try {
            long mutator = connection.mutator_open(ns, table, 0, 0);
            SerializedCellsWriter writer =
                    new SerializedCellsWriter(BUFFER_SIZE*values.size(), true);
            for (Map.Entry<String, ByteIterator> entry : values.entrySet()) {
                writer.add(key, _columnFamily, entry.getKey(),
                        SerializedCellsFlag.AUTO_ASSIGN,
                        ByteBuffer.wrap(entry.getValue().toArray()));           
            }
            connection.mutator_set_cells_serialized(mutator,
                    writer.buffer(), true);
            connection.mutator_close(mutator);
        } catch (ClientException e) {
            if (_debug) {
                System.err.println("Error doing set: " + e.message);
            }
View Full Code Here

TOP

Related Classes of org.hypertable.thrift.SerializedCellsWriter

Copyright © 2018 www.massapicom. 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.