Database Reference
In-Depth Information
byteBuffer2 =
compositeType.decompose("noida");
bb
=ByteBuffer.allocate(byteBuffer2.capacity()+byteBuffer1.capacity());
bb.put(byteBuffer1);
bb.put(byteBuffer2);
bb.flip();
// map value
usersWriter.addColumn(bb,compositeType.decompose(bytes("vivek")),timestamp);
16.
Issuing a select query over Users will produce the output shown in
Figure 10-4 .
Figure 10-4 . Output with a map column in the Users table
So that's how we can bulk load .db files directly on to disk in sstable format.
Summary
Just to summarize, in this chapter we discussed the nodetool utility's usage and vari-
ous operations for ring and schema management. We also discussed how to import and
export data in JSON format. Finally we discussed loading bulkloading CQL3 format
data (including collection).
In the next and final chapter, we will be summarizing our discussion and talking
about Cassandra version upgrades and other popular discussions in various forums.
 
 
Search WWH ::




Custom Search