Class ParquetPlainFileHandler
java.lang.Object
edu.stanford.slac.archiverappliance.plain.parquet.ParquetPlainFileHandler
- All Implemented Interfaces:
PlainFileHandler,PlainStreams
An implementation of
PlainFileHandler that uses the Parquet file format
for storing and retrieving EPICS event data.
This handler is responsible for all file-level operations related to Parquet files, including reading, writing, compression, and metadata extraction.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface edu.stanford.slac.archiverappliance.plain.PlainFileHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendDataStateData(Instant timestamp, PartitionGranularity partitionGranularity, String rootFolder, String desc, PVNameToKeyMapping pv2key) booleanbackUpFiles(boolean backupFilesBeforeETL) createEventFileWriter(String pvName, Path path, ArchDBRTypes type, short year) dataAtTime(List<Path> pathList, String pvName, Instant atTime, Instant startAtTime, BiDirectionalIterable.IterationDirection iterationDirection) voiddataDeleteTempFiles(BasicContext context, String pvName, String randSuffix, String rootFolder, PVNameToKeyMapping pv2key) voiddataMovePaths(BasicContext context, String pvName, String randSuffix, String suffix, String rootFolder, PVNameToKeyMapping pv2key) getPathKey(Path path) getStream(String pvName, Path path, ArchDBRTypes dbrType) getTimeStream(String pvName, Path path, Instant start, Instant end, boolean skipSearch, FileInfo fileInfo) getTimeStream(String pvName, Path path, ArchDBRTypes dbrType, Instant start, Instant end, boolean skipSearch) voidinitCompression(Map<String, String> queryStrings) voidmarkForDeletion(Path path) optimisedETLInfoListProcessor(ETLDest etlDest) rootFolderPath(String rootFolder) toString()updateRootFolderStr(String rootFolderStr) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.stanford.slac.archiverappliance.plain.PlainFileHandler
getExtensionString
-
Field Details
-
PARQUET_PLUGIN_IDENTIFIER
- See Also:
-
ZSTD_BUFFER_POOL_ENABLED
- See Also:
-
ZSTD_LEVEL
- See Also:
-
ZSTD_WORKERS
- See Also:
-
-
Constructor Details
-
ParquetPlainFileHandler
public ParquetPlainFileHandler()
-
-
Method Details
-
toString
-
pluginIdentifier
- Specified by:
pluginIdentifierin interfacePlainFileHandler
-
getPathResolver
- Specified by:
getPathResolverin interfacePlainFileHandler
-
useSearchForPositions
public boolean useSearchForPositions()- Specified by:
useSearchForPositionsin interfacePlainFileHandler
-
rootFolderPath
- Specified by:
rootFolderPathin interfacePlainFileHandler
-
initCompression
- Specified by:
initCompressionin interfacePlainFileHandler
-
fileInfo
- Specified by:
fileInfoin interfacePlainFileHandler- Throws:
IOException
-
getTimeStream
public EventStream getTimeStream(String pvName, Path path, ArchDBRTypes dbrType, Instant start, Instant end, boolean skipSearch) throws IOException - Specified by:
getTimeStreamin interfacePlainStreams- Throws:
IOException
-
getTimeStream
public EventStream getTimeStream(String pvName, Path path, Instant start, Instant end, boolean skipSearch, FileInfo fileInfo) throws IOException - Specified by:
getTimeStreamin interfacePlainStreams- Throws:
IOException
-
getStream
- Specified by:
getStreamin interfacePlainStreams- Throws:
IOException
-
dataAtTime
public Event dataAtTime(List<Path> pathList, String pvName, Instant atTime, Instant startAtTime, BiDirectionalIterable.IterationDirection iterationDirection) throws IOException - Specified by:
dataAtTimein interfacePlainStreams- Throws:
IOException
-
appendDataStateData
public AppendDataStateData appendDataStateData(Instant timestamp, PartitionGranularity partitionGranularity, String rootFolder, String desc, PVNameToKeyMapping pv2key) - Specified by:
appendDataStateDatain interfacePlainFileHandler
-
createEventFileWriter
public EventFileWriter createEventFileWriter(String pvName, Path path, ArchDBRTypes type, short year) throws IOException - Specified by:
createEventFileWriterin interfacePlainFileHandler- Throws:
IOException
-
markForDeletion
- Specified by:
markForDeletionin interfacePlainFileHandler- Throws:
IOException
-
dataMovePaths
public void dataMovePaths(BasicContext context, String pvName, String randSuffix, String suffix, String rootFolder, PVNameToKeyMapping pv2key) throws IOException - Specified by:
dataMovePathsin interfacePlainFileHandler- Throws:
IOException
-
dataDeleteTempFiles
public void dataDeleteTempFiles(BasicContext context, String pvName, String randSuffix, String rootFolder, PVNameToKeyMapping pv2key) throws IOException - Specified by:
dataDeleteTempFilesin interfacePlainFileHandler- Throws:
IOException
-
optimisedETLInfoListProcessor
- Specified by:
optimisedETLInfoListProcessorin interfacePlainFileHandler
-
updateRootFolderStr
- Specified by:
updateRootFolderStrin interfacePlainFileHandler
-
backUpFiles
public boolean backUpFiles(boolean backupFilesBeforeETL) - Specified by:
backUpFilesin interfacePlainFileHandler
-
urlOptions
- Specified by:
urlOptionsin interfacePlainFileHandler
-
getPathKey
- Specified by:
getPathKeyin interfacePlainFileHandler
-