public void printResults(SelectResults results, String message) {
    Object r;
    Struct s;
    LogWriter logger = GemFireCacheImpl.getInstance().getLogger();
    logger.fine(message);
    int row = 0;
    for (final Object result : results) {
      r = result;
      row++;
      if (r instanceof Struct) {
        s = (Struct) r;
        String[] fieldNames = ((Struct) r).getStructType().getFieldNames();
        for (final String fieldName : fieldNames) {
          logger.fine("### Row " + row + "\n" + "Field: " + fieldName + " > "
              + s.get(fieldName).toString());
        }
      } else {
        logger.fine("#### Row " + row + "\n" + r);
      }
    }
  }
The port on which the cache server was started in this VM
geode-cq/src/distributedTest/java/org/apache/geode/cache/query/dunit/PdxQueryCQTestBase.java