public void reset ( final long seed ) throws IOException { if ( locked ) throw new IllegalStateException ( ) ; if ( DEBUG ) System . err . println ( "RESET(" + seed + ")" ) ; filteredSize = 0 ; this . seed = seed ; checkedForDuplicates = false ; Arrays . fill ( count , 0 ) ; for ( int i = 0 ; i < DISK_CHUNKS ; i ++ ) { writableByteChannel [ i ] . close ( ) ; byteBuffer [ i ] . clear ( ) ; writableByteChannel [ i ] = new FileOutputStream ( file [ i ] ) . getChannel ( ) ; } }
Resets this store using a new seed . All accumulated data are cleared and a new seed is reinstated .