Guest User

Untitled

a guest
Aug 17th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. ### CODE
  2.  
  3. def get(keyspace : String, read : Read, c : ReadConsistency) : RowIterator[Column] = {
  4. cass.set_keyspace(keyspace)
  5. val parent = readToColumnParent(read)
  6. val predicate = readToPredicate(read)
  7. logger.debug("multiget_slice(" + read.keys + "," + parent + "," + predicate + "," + c.thrift + ")")
  8. val results = cass.multiget_slice(read.keys, parent, predicate, c.thrift)
  9. for(x <- results) {
  10. logger.debug("Key " + new String(x._1.array))
  11. for(y <- x._2){
  12. logger.debug("C Name " +new String(y.column.name.array))
  13. logger.debug("C Value " +new String(y.column.value.array))
  14. }
  15. }
  16. new MGColumnRowIterator(results)
  17. }
  18.  
  19.  
  20. ###OUTPUT
  21.  
  22.  
  23. 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)
  24. DEBUG 10/11/09 00:09:19 ThriftConnection - Key �multiget_slice
  25. ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
  26. 
  27. 
  28. ceo.coder@gmail.com
  29.  Krish Pan
  30. ��<�
  31. 
  32. content
  33. 
  34. new mail
  35.  
  36. ��<��
  37. 
  38. ourcoolmailbox@gmail.com
  39. No Name
  40. ��<��
  41. 
  42. subject
  43. sending a new mail
  44. ��<��
  45. DEBUG 10/11/09 00:09:19 ThriftConnection - C Name �multiget_slice
  46. ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
  47. 
  48. 
  49. ceo.coder@gmail.com
  50.  Krish Pan
  51. ��<�
  52. 
  53. content
  54. 
  55. new mail
  56.  
  57. ��<��
  58. 
  59. ourcoolmailbox@gmail.com
  60. No Name
  61. ��<��
  62. 
  63. subject
  64. sending a new mail
  65. ��<��
  66. DEBUG 10/11/09 00:09:19 ThriftConnection - C Value �multiget_slice
  67. ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
  68. 
  69. 
  70. ceo.coder@gmail.com
  71.  Krish Pan
  72. ��<�
  73. 
  74. content
  75. 
  76. new mail
  77.  
  78. ��<��
  79. 
  80. ourcoolmailbox@gmail.com
  81. No Name
  82. ��<��
  83. 
  84. subject
  85. sending a new mail
  86. ��<��
  87. DEBUG 10/11/09 00:09:19 ThriftConnection - C Name �multiget_slice
  88. ><AANLkTimAXYruDi_m5yQdaaDVnRD41KaeyOfxSig_OjFU@mail.gmail.com>
  89. 
  90. 
  91. ceo.coder@gmail.com
  92.  Krish Pan
  93. ��<�
  94. 
  95. content
  96. 
  97. new mail
  98.  
  99. ��<��
  100. 
  101. ourcoolmailbox@gmail.com
  102. No Name
  103. ��<��
  104. 
  105. subject
  106. sending a new mail
  107. ��<��
Add Comment
Please, Sign In to add comment