diff --git a/pom.xml b/pom.xml
index 0d108bd..655ca8c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,7 +43,7 @@
2.0.2.2
2.1.5
- 2.1.2
+ 2.1.4
16.0.1
1.3
diff --git a/src/main/java/com/noorq/casser/core/Query.java b/src/main/java/com/noorq/casser/core/Query.java
index a4788ab..3fc9278 100644
--- a/src/main/java/com/noorq/casser/core/Query.java
+++ b/src/main/java/com/noorq/casser/core/Query.java
@@ -17,6 +17,7 @@ package com.noorq.casser.core;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
import com.datastax.driver.core.querybuilder.BindMarker;
import com.datastax.driver.core.querybuilder.QueryBuilder;
@@ -72,12 +73,31 @@ public final class Query {
return new Postulate(Operator.IN, vals);
}
- public static Getter get(Getter> listGetter, int index) {
- return null;
+ public static Getter getIdx(Getter> listGetter, int index) {
+ Objects.requireNonNull(listGetter, "listGetter is null");
+
+ return new Getter() {
+
+ @Override
+ public V get() {
+ return listGetter.get().get(index);
+ }
+
+ };
}
- public static Getter get(Getter