h2/src/main/org/h2/mvstore/db/MVTableEngine.java
/**
         * Compact the database file, that is, compact blocks that have a low
         * fill rate, and move chunks next to each other. This will typically
         * shrink the database file. Changes are flushed to the file, and old
         * chunks are overwritten.
         *
         * @param maxCompactTime the maximum time in milliseconds to compact
         */
Compact the database file, that is, compact blocks that have a low
fill rate, and move chunks next to each other. This will typically
shrink the database file. Changes are flushed to the file, and old
chunks are overwritten.

@param maxCompactTime the maximum time in milliseconds to compact
Compact the database file that is compact blocks that have a low fill rate and move chunks next to each other . This will typically shrink the database file . Changes are flushed to the file and old chunks are overwritten . @param maxCompactTime the maximum time in milliseconds to compact
public void compactFile(long maxCompactTime) {
            store.setRetentionTime(0);
            long start = System.currentTimeMillis();
            while (store.compact(99)) {
                store.sync();
                long time = System.currentTimeMillis() - start;
                if (time > maxCompactTime) {
                    break;
                }
            }
            store.compactMoveChunks();
        }
public void compactFile ( long maxCompactTime ) { store . setRetentionTime ( 0 ) ; long start = System . currentTimeMillis ( ) ; while ( store . compact ( 99 ) ) { store . sync ( ) ; long time = System . currentTimeMillis ( ) - start ; if ( time > maxCompactTime ) { break ; } } store . compactMoveChunks ( ) ; }
Compact the database file, that is, compact blocks that have a low
 fill rate, and move chunks next to each other.
Compact the database file that is compact blocks that have a low fill rate and move chunks next to each other .