RangeIndex rIndex = IndexFactory.openBPT(loc, indexName,
SystemTDB.BlockReadCacheSize,
SystemTDB.BlockWriteCacheSize,
keyLength, valueLength) ;
BPlusTree bpt = (BPlusTree)rIndex ;
if ( false )
{
System.out.println("---- Index structure") ;
bpt.dump() ;
}
if ( true )
{
System.out.println("---- Index contents") ;
Iterator<Record> iter = bpt.iterator() ;
if ( ! iter.hasNext() )
System.out.println("<<Empty>>") ;
for ( ; iter.hasNext() ; )
{
Record r = iter.next();
printRecord("", System.out, r, keyUnitLen) ;
}
}
// Check.
Iterator<Record> iterCheck = bpt.iterator() ;
Record r1 = null ;
int i = 0 ;
for ( ; iterCheck.hasNext() ; )
{
Record r2 = iterCheck.next();