Package io.deephaven.parquet.base
Class ParquetUtils
java.lang.Object
io.deephaven.parquet.base.ParquetUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final byte[]
static final String
static final String
static final String
Used as a key for storing deephaven specific metadata in the key-value metadata of parquet files.static final String
static final int
The number of bytes to buffer before flushing while writing parquet files and metadata files. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getPerFileMetadataKey
(String filePath) static boolean
isMetadataFile
(@NotNull String source) This method verifies if the source points to a metadata file.static boolean
isParquetFile
(@NotNull String source) This method verifies if the source points to a parquet file.static boolean
isVisibleParquetFile
(@NotNull Path rootDir, @NotNull Path filePath) Check if the provided path points to a non-hidden parquet file, and that none of its parents (till rootDir) are hidden.static URI
Resolve a relative path against a base URI.
-
Field Details
-
PARQUET_FILE_EXTENSION
- See Also:
-
METADATA_FILE_NAME
- See Also:
-
COMMON_METADATA_FILE_NAME
- See Also:
-
METADATA_FILE_URI_SUFFIX
- See Also:
-
COMMON_METADATA_FILE_URI_SUFFIX
- See Also:
-
MAGIC
public static final byte[] MAGIC -
PARQUET_OUTPUT_BUFFER_SIZE
public static final int PARQUET_OUTPUT_BUFFER_SIZEThe number of bytes to buffer before flushing while writing parquet files and metadata files.- See Also:
-
METADATA_KEY
Used as a key for storing deephaven specific metadata in the key-value metadata of parquet files.- See Also:
-
-
Constructor Details
-
ParquetUtils
public ParquetUtils()
-
-
Method Details
-
getPerFileMetadataKey
- Returns:
- the key value derived from the file path, used for storing each file's metadata in the combined "_metadata" and "_common_metadata" files.
-
isParquetFile
This method verifies if the source points to a parquet file. Provided source can be a local file path or a URI. -
isMetadataFile
This method verifies if the source points to a metadata file. Provided source can be a local file path or a URI. -
isVisibleParquetFile
public static boolean isVisibleParquetFile(@NotNull @NotNull Path rootDir, @NotNull @NotNull Path filePath) Check if the provided path points to a non-hidden parquet file, and that none of its parents (till rootDir) are hidden. -
resolve
Resolve a relative path against a base URI. The path can be from Windows or Unix systems. This method should be used if we expect the relative path to contain file separators or special characters, otherwise usebase.resolve(relativePath)
-