public Rows <K, N, V> getRows <K, N, V>(string keyspace, Object columnFamily, ICollection <K> keys, ICollection <String> columnNames) { client.set_keyspace(keyspace); List <byte[]> binaryKeys = keys.ToByteArrayListFromCollection <K>(); SlicePredicate sp = new SlicePredicate(); sp.Column_names = columnNames.ToByteArrayListFromCollection <string>(); Rows <K, N, V> results = ThriftUtility.ToRowsFromSliceQuery <K, N, V>(client.multiget_slice(binaryKeys, new ColumnParent() { Column_family = columnFamily.ToString() }, sp, consistencyLevel)); return(results); }
public Rows <K, N, V> getRows <K, N, V>(string keyspace, Object columnFamily, ICollection <K> keys) { client.set_keyspace(keyspace); List <byte[]> binaryKeys = keys.ToByteArrayListFromCollection <K>(); ColumnParent cp = new ColumnParent() { Column_family = columnFamily.ToString() }; SlicePredicate sp = new SlicePredicate(); sp.Slice_range = new SliceRange(); sp.Slice_range.Start = new byte[0]; sp.Slice_range.Finish = new byte[0]; sp.Slice_range.Reversed = false; sp.Slice_range.Count = ALL_COUNT; Rows <K, N, V> results = ThriftUtility.ToRowsFromSliceQuery <K, N, V>(client.multiget_slice(binaryKeys, new ColumnParent() { Column_family = columnFamily.ToString() }, sp, consistencyLevel)); return(results); }