query builder util class
diff --git a/src/main/java/de/ids_mannheim/korap/config/QueryBuilderUtil.java b/src/main/java/de/ids_mannheim/korap/config/QueryBuilderUtil.java
index f308399..d0cfe19 100644
--- a/src/main/java/de/ids_mannheim/korap/config/QueryBuilderUtil.java
+++ b/src/main/java/de/ids_mannheim/korap/config/QueryBuilderUtil.java
@@ -1,8 +1,22 @@
package de.ids_mannheim.korap.config;
+import de.ids_mannheim.korap.query.serialize.MetaQueryBuilder;
+
/**
* @author hanl
* @date 25/06/2015
*/
public class QueryBuilderUtil {
+
+ public static MetaQueryBuilder defaultMetaBuilder(Integer pageIndex,
+ Integer pageInteger, Integer pageLength, String ctx,
+ Boolean cutoff) {
+ MetaQueryBuilder meta = new MetaQueryBuilder();
+ meta.addEntry("startIndex", pageIndex)
+ .addEntry("startPage", pageInteger)
+ .addEntry("count", pageLength).setSpanContext(ctx)
+ .addEntry("cutOff", cutoff);
+ return meta;
+
+ }
}