@Override public Map<ByteBuffer, List<Column>> execute(Cassandra.Client cassandra) throws HectorException { try { List<KeySlice> keySlices = cassandra.get_indexed_slices(columnParent, indexClause, predicate, getThriftCl(OperationType.READ)); if (keySlices == null || keySlices.isEmpty()) { return new LinkedHashMap<ByteBuffer, List<Column>>(0); } LinkedHashMap<ByteBuffer, List<Column>> ret = new LinkedHashMap<ByteBuffer, List<Column>>( keySlices.size()); for (KeySlice keySlice : keySlices) { ret.put(ByteBuffer.wrap(keySlice.getKey()), getColumnList(keySlice.getColumns())); } return ret; } catch (Exception e) { throw xtrans.translate(e); } }; };
@Override public Map<ByteBuffer, List<ColumnOrSuperColumn>> execute(Client cassandra) throws HectorException { try { List<KeySlice> keySlices = cassandra.get_indexed_slices( columnParent, predicate.toThrift(), workingSlicePredicate.toThrift(), ThriftConverter.consistencyLevel(consistencyLevelPolicy.get(operationType, columnFamily))); if (keySlices == null || keySlices.isEmpty()) { return new LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>>(0); } LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>> ret = new LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>>(keySlices.size()); for (KeySlice keySlice : keySlices) { ret.put(ByteBuffer.wrap(keySlice.getKey()), keySlice.getColumns()); } return ret; } catch (Exception e) { throw exceptionsTranslator.translate(e); } } });
List<KeySlice> keySlices = conn.getClient().get_indexed_slices(columnParent, ix, slicePredicate, getConsistencyLevel());
.get_indexed_slices(columnParent, ix, slicePredicate, getConsistencyLevel());
for (IndexClause ix : ixClause) List<KeySlice> keySlices = conn.getClient().get_indexed_slices(new ColumnParent(m.getTableName()), ix, slicePredicate, getConsistencyLevel());
slices = thriftClient.get_indexed_slices(parent, clause, predicate, consistencyLevel); printSliceList(columnFamilyDef, slices);
List<KeySlice> keySlices = conn.getClient().get_indexed_slices(columnParent, ix, slicePredicate, getConsistencyLevel());
@Override public Map<ByteBuffer, List<ColumnOrSuperColumn>> execute(Client cassandra) throws HectorException { try { List<KeySlice> keySlices = cassandra.get_indexed_slices( columnParent, predicate.toThrift(), workingSlicePredicate.toThrift(), ThriftConverter.consistencyLevel(consistencyLevelPolicy.get(operationType, columnFamily))); if (keySlices == null || keySlices.isEmpty()) { return new LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>>(0); } LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>> ret = new LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>>(keySlices.size()); for (KeySlice keySlice : keySlices) { ret.put(ByteBuffer.wrap(keySlice.getKey()), keySlice.getColumns()); } return ret; } catch (Exception e) { throw exceptionsTranslator.translate(e); } } });
@Override public Map<ByteBuffer, List<ColumnOrSuperColumn>> execute(Client cassandra) throws HectorException { try { List<KeySlice> keySlices = cassandra.get_indexed_slices( columnParent, predicate.toThrift(), workingSlicePredicate.toThrift(), ThriftConverter.consistencyLevel(consistencyLevelPolicy.get(operationType, columnFamily))); if (keySlices == null || keySlices.isEmpty()) { return new LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>>(0); } LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>> ret = new LinkedHashMap<ByteBuffer, List<ColumnOrSuperColumn>>(keySlices.size()); for (KeySlice keySlice : keySlices) { ret.put(ByteBuffer.wrap(keySlice.getKey()), keySlice.getColumns()); } return ret; } catch (Exception e) { throw exceptionsTranslator.translate(e); } } });
@Override public Map<ByteBuffer, List<Column>> execute(Cassandra.Client cassandra) throws HectorException { try { List<KeySlice> keySlices = cassandra.get_indexed_slices(columnParent, indexClause, predicate, getThriftCl(OperationType.READ)); if (keySlices == null || keySlices.isEmpty()) { return new LinkedHashMap<ByteBuffer, List<Column>>(0); } LinkedHashMap<ByteBuffer, List<Column>> ret = new LinkedHashMap<ByteBuffer, List<Column>>( keySlices.size()); for (KeySlice keySlice : keySlices) { ret.put(ByteBuffer.wrap(keySlice.getKey()), getColumnList(keySlice.getColumns())); } return ret; } catch (Exception e) { throw xtrans.translate(e); } }; };
@Override public Map<ByteBuffer, List<Column>> execute(Cassandra.Client cassandra) throws HectorException { try { List<KeySlice> keySlices = cassandra.get_indexed_slices(columnParent, indexClause, predicate, getThriftCl(OperationType.READ)); if (keySlices == null || keySlices.isEmpty()) { return new LinkedHashMap<ByteBuffer, List<Column>>(0); } LinkedHashMap<ByteBuffer, List<Column>> ret = new LinkedHashMap<ByteBuffer, List<Column>>( keySlices.size()); for (KeySlice keySlice : keySlices) { ret.put(ByteBuffer.wrap(keySlice.getKey()), getColumnList(keySlice.getColumns())); } return ret; } catch (Exception e) { throw xtrans.translate(e); } }; };
@Override public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException { return client.get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level); }
@Override public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException { return client.get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level); }
if (!m.getType().equals(Type.SUPER_COLUMN_FAMILY)) keySlices = conn.getClient().get_indexed_slices(columnParent, ix, slicePredicate, getConsistencyLevel());
for (IndexClause ix : ixClause) List<KeySlice> keySlices = conn.getClient().get_indexed_slices(new ColumnParent(m.getTableName()), ix, slicePredicate, getConsistencyLevel());
@Override public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException { return client.get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level); }