Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added overloaded querySuperColumns method addressing #352

  • Loading branch information...
commit 349bb15183cf3a40cb24d67d8bbe8d632c6d7916 1 parent a2ba363
zznate authored
View
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,
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);
Please sign in to comment.
Something went wrong with that request. Please try again.