public LuaList getLuaList(Value[] array) { List<LuaValue> luaList = new ArrayList<LuaValue>(); for (Value value : array) { luaList.add(value.getLuaValue(this)); } return new LuaList(this, luaList); }
public LuaList getLuaList(Value[] array) { List<LuaValue> luaList = new ArrayList<LuaValue>(); for (Value value : array) { luaList.add(value.getLuaValue(this)); } return new LuaList(this, luaList); }
public void runThreads() throws AerospikeException { try { // Start thread queries to each node. startThreads(); lua.loadPackage(statement); LuaValue[] args = new LuaValue[4 + statement.getFunctionArgs().length]; args[0] = lua.getFunction(statement.getFunctionName()); args[1] = LuaInteger.valueOf(2); args[2] = new LuaInputStream(inputQueue); args[3] = new LuaOutputStream(resultSet); int count = 4; for (Value value : statement.getFunctionArgs()) { args[count++] = value.getLuaValue(lua); } lua.call("apply_stream", args); } finally { // Send end command to user's result set. // If query was already cancelled, this put will be ignored. resultSet.put(ResultSet.END); } }
return value.getLuaValue(this);
public void runThreads() throws AerospikeException { try { // Start thread queries to each node. startThreads(); lua.loadPackage(statement); LuaValue[] args = new LuaValue[4 + statement.getFunctionArgs().length]; args[0] = lua.getFunction(statement.getFunctionName()); args[1] = LuaInteger.valueOf(2); args[2] = new LuaInputStream(inputQueue); args[3] = new LuaOutputStream(resultSet); int count = 4; for (Value value : statement.getFunctionArgs()) { args[count++] = value.getLuaValue(lua); } lua.call("apply_stream", args); } finally { // Send end command to user's result set. // If query was already cancelled, this put will be ignored. resultSet.put(ResultSet.END); } }
return value.getLuaValue(this);