Skip to content
This repository
Browse code

added overloaded querySuperColumns method addressing #352

  • Loading branch information...
commit 349bb15183cf3a40cb24d67d8bbe8d632c6d7916 1 parent a2ba363
zznate authored
12 core/src/main/java/me/prettyprint/cassandra/service/template/SuperCfTemplate.java
@@ -140,7 +140,17 @@ public int countSubColumns(K key, SN superColumnName, N start,
140 140 valueSerializer.fromByteBuffer(origCol.getValue()), origCol.getClock(),
141 141 subSerializer, valueSerializer);
142 142 }
143   -
  143 +
  144 + /**
  145 + * Query super columns using the provided predicate instead of the internal one
  146 + * @param key
  147 + * @param predicate
  148 + * @return
  149 + */
  150 + public SuperCfResult<K, SN, N> querySuperColumns(K key, HSlicePredicate<SN> predicate) {
  151 + return doExecuteSlice(key,null,predicate);
  152 + }
  153 +
144 154 public SuperCfResult<K, SN, N> querySuperColumns(K key, List<SN> sColumnNames) {
145 155 HSlicePredicate<SN> workingSlicePredicate = new HSlicePredicate<SN>(topSerializer);
146 156 workingSlicePredicate.setColumnNames(sColumnNames);

0 comments on commit 349bb15

Please sign in to comment.
Something went wrong with that request. Please try again.