public KeyspaceService create(String keyspaceName, ConsistencyLevelPolicy consistencyLevel, HConnectionManager connectionManager, FailoverPolicy failoverPolicy, Map<String, String> credentials) throws HectorTransportException { return new KeyspaceServiceImpl(keyspaceName, consistencyLevel, connectionManager, failoverPolicy, credentials); } }
@Override public void addCounter(final ByteBuffer key, final ColumnParent columnParent, final CounterColumn counterColumn) throws HectorException { super.addCounter(ps.toByteBuffer(key), columnParent, counterColumn); }
@Override public void batchMutate(Map<ByteBuffer, Map<String, List<Mutation>>> mutationMap) throws HectorException { super.batchMutate(ps.toBytesMap(mutationMap)); }
@Override public List<CounterSuperColumn> getCounterSuperSlice(ByteBuffer key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return super.getCounterSuperSlice(ps.toByteBuffer(key), columnParent, predicate); }
@Override public List<CounterColumn> getCounterSlice(ByteBuffer key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return super.getCounterSlice(ps.toByteBuffer(key), columnParent, predicate); }
@Override public CounterColumn getCounter(ByteBuffer key, ColumnPath columnPath) throws HectorException { return super.getCounter(ps.toByteBuffer(key), columnPath); }
@Override public Column getColumn(ByteBuffer key, ColumnPath columnPath) throws HectorException { return super.getColumn(ps.toByteBuffer(key), columnPath); }
@Override public Map<ByteBuffer, List<Column>> getIndexedSlices( ColumnParent columnParent, IndexClause indexClause, SlicePredicate predicate) throws HectorException { return ps.fromBytesMap(super.getIndexedSlices(columnParent, indexClause, predicate)); }
@Override public Map<ByteBuffer, List<CounterColumn>> getRangeCounterSlices( ColumnParent columnParent, SlicePredicate predicate, KeyRange keyRange) throws HectorException { return ps.fromBytesMap(super.getRangeCounterSlices(columnParent, predicate, prefixKeyRange(keyRange))); }
@Override public int getCount(ByteBuffer key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return super.getCount(ps.toByteBuffer(key), columnParent, predicate); }
@Override public List<CounterSuperColumn> getCounterSuperSlice(String key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return getCounterSuperSlice(StringSerializer.get().toByteBuffer(key), columnParent, predicate); }
@Override public List<CounterColumn> getCounterSlice(String key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return getCounterSlice(StringSerializer.get().toByteBuffer(key), columnParent, predicate); }
@Override public CounterColumn getCounter(String key, ColumnPath columnPath) throws HectorException { return getCounter(StringSerializer.get().toByteBuffer(key), columnPath); }
@Override public Column getColumn(String key, ColumnPath columnPath) throws HectorException { return getColumn(StringSerializer.get().toByteBuffer(key), columnPath); }
@Override public Map<ByteBuffer, List<Column>> getIndexedSlices( ColumnParent columnParent, IndexClause indexClause, SlicePredicate predicate) throws HectorException { return ps.fromBytesMap(super.getIndexedSlices(columnParent, indexClause, predicate)); }
@Override public Map<ByteBuffer, List<CounterColumn>> getRangeCounterSlices( ColumnParent columnParent, SlicePredicate predicate, KeyRange keyRange) throws HectorException { return ps.fromBytesMap(super.getRangeCounterSlices(columnParent, predicate, prefixKeyRange(keyRange))); }
@Override public int getCount(ByteBuffer key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return super.getCount(ps.toByteBuffer(key), columnParent, predicate); }
ks = new KeyspaceServiceImpl(keyspace, policy, connectionManager, failoverPolicy, credentials); return koc.doInKeyspaceAndMeasure(ks);
@Override public List<CounterSuperColumn> getCounterSuperSlice(ByteBuffer key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return super.getCounterSuperSlice(ps.toByteBuffer(key), columnParent, predicate); }
@Override public List<CounterColumn> getCounterSlice(ByteBuffer key, ColumnParent columnParent, SlicePredicate predicate) throws HectorException { return super.getCounterSlice(ps.toByteBuffer(key), columnParent, predicate); }