Package io.deephaven.parquet.base
Class ParquetUtils
java.lang.Object
io.deephaven.parquet.base.ParquetUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final byte[]static final Stringstatic final Stringstatic final Stringstatic final StringUsed as a key for storing deephaven specific metadata in the key-value metadata of parquet files.static final Stringstatic final intThe number of bytes to buffer before flushing while writing parquet files and metadata files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPerFileMetadataKey(String filePath) static booleanisParquetFile(@NotNull String source) This method verifies if the source points to a parquet file or a metadata file.static booleanisVisibleParquetFile(@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.
-
Field Details
-
METADATA_FILE_NAME
- See Also:
-
COMMON_METADATA_FILE_NAME
- See Also:
-
PARQUET_FILE_EXTENSION
- See Also:
-
METADATA_FILE_URI_SUFFIX
- See Also:
-
COMMON_METADATA_FILE_URI_SUFFIX
- See Also:
-
METADATA_FILE_SUFFIX
-
COMMON_METADATA_FILE_SUFFIX
-
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 or a metadata file. Provided source can be a local file path or a URI. Also, it can point to a parquet file, metadata file or a directory. -
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.
-