Skip to content

Commit

Permalink
Add dumpStatsAndColumnMeta call to LoadingStore
Browse files Browse the repository at this point in the history
Moved the dumpStatsAndColumnMeta execution from CSVLoaderNewSearch to LoadingStore for better encapsulation and responsibility alignment. This ensures metadata and statistics dumping is consistently handled within the store's lifecycle.
  • Loading branch information
Gcolon021 committed Jan 6, 2025
1 parent 2dc5d21 commit 2c18b19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public static void main(String[] args) throws IOException {
store.allObservationsStore = new RandomAccessFile(HPDS_DIRECTORY + "allObservationsStore.javabin", "rw");
initialLoad();
store.saveStore(HPDS_DIRECTORY);
store.dumpStatsAndColumnMeta(HPDS_DIRECTORY);
}

private static void initialLoad() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public void saveStore(String hpdsDirectory) throws IOException {
metaOut.close();
System.out.println("Closing Store");
allObservationsStore.close();
dumpStatsAndColumnMeta(hpdsDirectory);
}

public void dumpStats() {
Expand Down

0 comments on commit 2c18b19

Please sign in to comment.