Class ParquetInfo
java.lang.Object
edu.stanford.slac.archiverappliance.plain.FileInfo
edu.stanford.slac.archiverappliance.plain.parquet.ParquetInfo
An implementation of
FileInfo for Parquet files.
This class is responsible for reading and interpreting the metadata and data within a single Parquet file. It provides methods to access file-level information such as the PV name, data year, and data type. It also offers wrappers methods for retrieving specific events, such as the first, last, or an event at a particular time, by leveraging Parquet's internal metadata (like column statistics) and predicate pushdown filters.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields inherited from class edu.stanford.slac.archiverappliance.plain.FileInfo
firstEvent, lastEvent -
Constructor Summary
ConstructorsConstructorDescriptionParquetInfo(Path pvPath) ParquetInfo(Path pvPath, org.apache.parquet.ParquetReadOptions readOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic ParquetInfofetchFileInfo(Path path) Create the fileinfo for a given pathorg.apache.parquet.hadoop.metadata.CompressionCodecNameGets the compression codec used for the file.shortgetType()toString()Methods inherited from class edu.stanford.slac.archiverappliance.plain.FileInfo
getFirstEventInstant, getLastEventInstant
-
Constructor Details
-
ParquetInfo
public ParquetInfo(Path pvPath, org.apache.parquet.ParquetReadOptions readOptions) throws IOException - Throws:
IOException
-
ParquetInfo
- Throws:
IOException
-
-
Method Details
-
fetchFileInfo
Create the fileinfo for a given path- Parameters:
path- Path to file- Returns:
- ParquetInfo
-
toString
-
getPVName
-
getDataYear
public short getDataYear()- Specified by:
getDataYearin classFileInfo
-
getType
-
getFirstEvent
- Specified by:
getFirstEventin classFileInfo
-
getLastEvent
- Specified by:
getLastEventin classFileInfo
-
getCompressionCodecName
public org.apache.parquet.hadoop.metadata.CompressionCodecName getCompressionCodecName()Gets the compression codec used for the file.- Returns:
- The
CompressionCodecNameused.
-