Пример #1
0
 public <R, V> MappedColumnFamilyResult<K, N, R> queryColumns(
     IndexedSlicesPredicate<K, N, V> predicate,
     List<N> columns,
     ColumnFamilyRowMapper<K, N, R> mapper) {
   HSlicePredicate<N> slicePredicate = new HSlicePredicate<N>(topSerializer);
   slicePredicate.setColumnNames(columns);
   return doExecuteIndexedSlices(predicate, slicePredicate, mapper);
 }
Пример #2
0
 public <V> ColumnFamilyResult<K, N> queryColumns(
     IndexedSlicesPredicate<K, N, V> predicate, List<N> columns) {
   HSlicePredicate<N> slicePredicate = new HSlicePredicate<N>(topSerializer);
   slicePredicate.setColumnNames(columns);
   return doExecuteIndexedSlices(predicate, slicePredicate);
 }
Пример #3
0
 public ColumnFamilyResult<K, N> queryColumns(K key, List<N> columns) {
   HSlicePredicate<N> predicate = new HSlicePredicate<N>(topSerializer);
   predicate.setColumnNames(columns);
   return doExecuteSlice(key, predicate);
 }
Пример #4
0
 public <V> MappedColumnFamilyResult<K, N, V> queryColumns(
     Iterable<K> keys, List<N> columns, ColumnFamilyRowMapper<K, N, V> mapper) {
   HSlicePredicate<N> predicate = new HSlicePredicate<N>(topSerializer);
   predicate.setColumnNames(columns);
   return doExecuteMultigetSlice(keys, predicate, mapper);
 }
Пример #5
0
 /**
  * Queries all columns at a given key and maps them to an object of type OBJ using the given
  * mapping object
  *
  * @param <T>
  * @param key
  * @param columns
  * @param mapper
  * @return
  */
 public <T> T queryColumns(K key, List<N> columns, ColumnFamilyRowMapper<K, N, T> mapper) {
   HSlicePredicate<N> predicate = new HSlicePredicate<N>(topSerializer);
   predicate.setColumnNames(columns);
   return doExecuteSlice(key, predicate, mapper);
 }