code: private void cqlQueryFromTuple(Map<String, ByteBuffer> key, Tuple t, int offset) throws IOException
      {
          for (int i = offset; i < t.size(); i++)
          {
              if (t.getType(i) == DataType.TUPLE)
              {
                  Tuple inner = (Tuple) t.get(i);
                  if (inner.size() > 0)
                  {
                      List<ByteBuffer> bindedVariables = bindedVariablesFromTuple(inner);
                      if (bindedVariables.size() > 0)
                          sendCqlQuery(key, bindedVariables);
                      else
                          throw new IOException("Missing binded variables");
                  }
              }
              else
              {
                  throw new IOException("Output type was not a tuple");
              }
          }
      }
docs: send CQL query request using data from tuple