code: static void export(SSTableReader reader, PrintStream outs, String[] excludes, CFMetaData metadata) throws IOException
      {
          Set<String> excludeSet = new HashSet<String>();
  
          if (excludes != null)
              excludeSet = new HashSet<String>(Arrays.asList(excludes));
  
          SSTableIdentityIterator row;
          ISSTableScanner scanner = reader.getScanner();
          try
          {
              outs.println("[");
  
              int i = 0;
  
              // collecting keys to export
              while (scanner.hasNext())
              {
                  row = (SSTableIdentityIterator) scanner.next();
  
                  String currentKey = row.getColumnFamily().metadata().getKeyValidator().getString(row.getKey().getKey());
  
                  if (excludeSet.contains(currentKey))
                      continue;
                  else if (i != 0)
                      outs.println(",");
  
                  serializeRow(row, row.getKey(), outs);
                  checkStream(outs);
  
                  i++;
              }
  
              outs.println("\n]");
              outs.flush();
          }
          finally
          {
              scanner.close();
          }
      }
docs: than once from within the same process.