private void dumpNamedIndicesMetadata(final PrintWriter out,final List<String> namespaces,final ICommitRecord commitRecord,final boolean dumpPages,final boolean dumpIndices,final boolean showTuples){
  final Iterator<String> nitr=journal.indexNameScan(null,commitRecord.getTimestamp());
  final Map<String,BaseIndexStats> pageStats=new TreeMap<String,BaseIndexStats>();
  while (nitr.hasNext()) {
    final String name=nitr.next();
    if (namespaces != null && !namespaces.isEmpty()) {
      boolean found=false;
      for (      String namespace : namespaces) {
        if (name.startsWith(namespace)) {
          found=true;
          break;
        }
      }
      if (!found) {
        continue;
      }
    }
    out.println("name=" + name);
    final ICheckpointProtocol ndx;
    try {
      ndx=journal.getIndexWithCommitRecord(name,commitRecord);
    }
 catch (    Throwable t) {
      if (InnerCause.isInnerCause(t,ClassNotFoundException.class)) {
        log.warn("Could not load index: " + InnerCause.getInnerCause(t,ClassNotFoundException.class));
        continue;
      }
 else       throw new RuntimeException(t);
    }
    out.println("\t" + ndx.getCheckpoint());
    out.println("\t" + ndx.getIndexMetadata());
{
      final BaseIndexStats stats=ndx.dumpPages(dumpPages,dumpPages);
      out.println("\t" + stats);
      pageStats.put(name,stats);
      if (dumpIndices) {
        if (ndx instanceof AbstractBTree) {
          DumpIndex.dumpIndex((AbstractBTree)ndx,showTuples);
        }
      }
    }
  }
  BaseIndexStats.writeOn(out,pageStats);
}

private void dumpNamedIndicesMetadata ( final PrintWriter out , final List < String > namespaces , final ICommitRecord commitRecord , final boolean dumpPages , final boolean dumpIndices , final boolean showTuples ) { final Iterator < String > nitr = journal . indexNameScan ( null , commitRecord . getTimestamp ( ) ) ; final Map < String , BaseIndexStats > pageStats = new TreeMap < String , BaseIndexStats > ( ) ; while ( nitr . hasNext ( ) ) { final String name = nitr . next ( ) ; if ( namespaces != null && ! namespaces . isEmpty ( ) ) { boolean found = false ; for ( String namespace : namespaces ) { if ( name . startsWith ( namespace ) ) { found = true ; break ; } } if ( ! found ) { continue ; } } out . println ( "name=" + name ) ; final ICheckpointProtocol ndx ; try { ndx = journal . getIndexWithCommitRecord ( name , commitRecord ) ; } catch ( Throwable t ) { if ( InnerCause . isInnerCause ( t , ClassNotFoundException . class ) ) { log . warn ( "Could not load index: " + InnerCause . getInnerCause ( t , ClassNotFoundException . class ) ) ; continue ; } else throw new RuntimeException ( t ) ; } out . println ( "\t" + ndx . getCheckpoint ( ) ) ; out . println ( "\t" + ndx . getIndexMetadata ( ) ) ; { final BaseIndexStats stats = ndx . dumpPages ( dumpPages , dumpPages ) ; out . println ( "\t" + stats ) ; pageStats . put ( name , stats ) ; if ( dumpIndices ) { if ( ndx instanceof AbstractBTree ) { DumpIndex . dumpIndex ( ( AbstractBTree ) ndx , showTuples ) ; } } } } BaseIndexStats . writeOn ( out , pageStats ) ; }
dump metadata about each named index as of the specified commit record .
