public List<JsonObject> executeParametrizedStatement(String statement,List<String> parameterNames,List<Object> parameterValues){
  JsonObject namedParams=JsonObject.create();
  for (int param=0; param < parameterNames.size(); param++) {
    namedParams.put(parameterNames.get(param),parameterValues.get(param));
  }
  ParameterizedN1qlQuery query=N1qlQuery.parameterized(statement,namedParams);
  return executeQuery(query);
}

public List < JsonObject > executeParametrizedStatement ( String statement , List < String > parameterNames , List < Object > parameterValues ) { JsonObject namedParams = JsonObject . create ( ) ; for ( int param = 0 ; param < parameterNames . size ( ) ; param ++ ) { namedParams . put ( parameterNames . get ( param ) , parameterValues . get ( param ) ) ; } ParameterizedN1qlQuery query = N1qlQuery . parameterized ( statement , namedParams ) ; return executeQuery ( query ) ; }
executes a n1ql statement with named parameters .
