Class IndexStoreUtils
java.lang.Object
org.apache.jackrabbit.oak.index.indexer.document.indexstore.IndexStoreUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Compression
static boolean
static OutputStream
createOutputStream
(Path file, Compression algorithm) static BufferedReader
createReader
(File file, boolean compressionEnabled) This function by default uses GNU zip as compression algorithm for backward compatibility.static BufferedReader
createReader
(File file, Compression algorithm) static BufferedWriter
createWriter
(File file, boolean compressionEnabled) This function by default uses GNU zip as compression algorithm for backward compatibility.static BufferedWriter
createWriter
(File file, Compression algorithm) static File
getMetadataFile
(File indexStoreFile, Compression algorithm) static String
getMetadataFileName
(Compression algorithm) static String
getSortedStoreFileName
(Compression algorithm) static long
static boolean
useLZ4()
static void
validateFlatFileStoreFileName
(File file, @NotNull Compression algorithm) This method validates the compression suffix is in correspondence with compression algorithm.
-
Field Details
-
METADATA_SUFFIX
- See Also:
-
OAK_INDEXER_USE_ZIP
- See Also:
-
OAK_INDEXER_USE_LZ4
- See Also:
-
-
Constructor Details
-
IndexStoreUtils
public IndexStoreUtils()
-
-
Method Details
-
compressionEnabled
public static boolean compressionEnabled() -
useLZ4
public static boolean useLZ4() -
compressionAlgorithm
-
createReader
This function by default uses GNU zip as compression algorithm for backward compatibility. -
createReader
-
createWriter
This function by default uses GNU zip as compression algorithm for backward compatibility.- Throws:
IOException
-
createWriter
- Throws:
IOException
-
createOutputStream
- Throws:
IOException
-
sizeOf
-
getSortedStoreFileName
-
getMetadataFileName
-
getMetadataFile
-
validateFlatFileStoreFileName
public static void validateFlatFileStoreFileName(File file, @NotNull @NotNull Compression algorithm) This method validates the compression suffix is in correspondence with compression algorithm.
-