Skip to content

Commit

Permalink
added overloaded querySuperColumns method addressing #352
Browse files Browse the repository at this point in the history
  • Loading branch information
zznate committed Dec 7, 2011
1 parent a2ba363 commit 349bb15
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -140,7 +140,17 @@ public <V> HColumn<N, V> querySingleSubColumn(K key,
valueSerializer.fromByteBuffer(origCol.getValue()), origCol.getClock(),
subSerializer, valueSerializer);
}


/**
* Query super columns using the provided predicate instead of the internal one
* @param key
* @param predicate
* @return
*/
public SuperCfResult<K, SN, N> querySuperColumns(K key, HSlicePredicate<SN> predicate) {
return doExecuteSlice(key,null,predicate);
}

public SuperCfResult<K, SN, N> querySuperColumns(K key, List<SN> sColumnNames) {
HSlicePredicate<SN> workingSlicePredicate = new HSlicePredicate<SN>(topSerializer);
workingSlicePredicate.setColumnNames(sColumnNames);
Expand Down

0 comments on commit 349bb15

Please sign in to comment.