Class LargeFileSorter<T>
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.offerdiff.sort.LargeFileSorter<T>
-
public class LargeFileSorter<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
INITIAL_FILE_CHUNK_SIZE_TO_SORT_IN_MEMORY
static int
NB_FILES_TO_MERGE_SORT
-
Constructor Summary
Constructors Constructor Description LargeFileSorter(java.util.function.Function<java.io.File,LargeFileReader<T>> fileReaderFactory, java.util.function.Function<java.io.File,LargeFileWriter<T>> fileWriterFactory, java.util.Comparator<T> entryComparator, java.util.function.Supplier<java.io.File> tempFileCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
sortLargeFile(java.io.File inputFile)
Sorts a large file using entryComparator.
-
-
-
Field Detail
-
INITIAL_FILE_CHUNK_SIZE_TO_SORT_IN_MEMORY
public static final int INITIAL_FILE_CHUNK_SIZE_TO_SORT_IN_MEMORY
- See Also:
- Constant Field Values
-
NB_FILES_TO_MERGE_SORT
public static final int NB_FILES_TO_MERGE_SORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LargeFileSorter
public LargeFileSorter(java.util.function.Function<java.io.File,LargeFileReader<T>> fileReaderFactory, java.util.function.Function<java.io.File,LargeFileWriter<T>> fileWriterFactory, java.util.Comparator<T> entryComparator, java.util.function.Supplier<java.io.File> tempFileCreator)
-
-