Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### CODE
- def get(keyspace : String, read : Read, c : ReadConsistency) : RowIterator[Column] = {
- cass.set_keyspace(keyspace)
- val parent = readToColumnParent(read)
- val predicate = readToPredicate(read)
- logger.debug("multiget_slice(" + read.keys + "," + parent + "," + predicate + "," + c.thrift + ")")
- val results = cass.multiget_slice(read.keys, parent, predicate, c.thrift)
- for(x <- results) {
- logger.debug("Key " + new String(x._1.array))
- for(y <- x._2){
- logger.debug("C Name " +new String(y.column.name.array))
- logger.debug("C Value " +new String(y.column.value.array))
- }
- }
- new MGColumnRowIterator(results)
- }
- ###OUTPUT
- DEBUG 10/11/09 00:09:19 ThriftConnection - multiget_slice(List(java.nio.HeapByteBuffer[pos=88 lim=150 cap=164]),ColumnParent(column_family:MIDMeta),SlicePredicate(slice_range:SliceRange(start:, finish:, reversed:false, count:1000)),QUORUM)
- DEBUG 10/11/09 00:09:19 ThriftConnection - Key �multiget_slice
- ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
- ceo.coder@gmail.com
- Krish Pan
- ��<�
- content
- new mail
- ��<��
- ourcoolmailbox@gmail.com
- No Name
- ��<��
- subject
- sending a new mail
- ��<��
- DEBUG 10/11/09 00:09:19 ThriftConnection - C Name �multiget_slice
- ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
- ceo.coder@gmail.com
- Krish Pan
- ��<�
- content
- new mail
- ��<��
- ourcoolmailbox@gmail.com
- No Name
- ��<��
- subject
- sending a new mail
- ��<��
- DEBUG 10/11/09 00:09:19 ThriftConnection - C Value �multiget_slice
- ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
- ceo.coder@gmail.com
- Krish Pan
- ��<�
- content
- new mail
- ��<��
- ourcoolmailbox@gmail.com
- No Name
- ��<��
- subject
- sending a new mail
- ��<��
- DEBUG 10/11/09 00:09:19 ThriftConnection - C Name �multiget_slice
- ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
- ceo.coder@gmail.com
- Krish Pan
- ��<�
- content
- new mail
- ��<��
- ourcoolmailbox@gmail.com
- No Name
- ��<��
- subject
- sending a new mail
- ��<��
Add Comment
Please, Sign In to add comment