Uses of Enum Class
edu.stanford.slac.archiverappliance.PlainPB.PlainPBStoragePlugin.CompressionMode
Packages that use PlainPBStoragePlugin.CompressionMode
-
Uses of PlainPBStoragePlugin.CompressionMode in edu.stanford.slac.archiverappliance.PlainPB
Methods in edu.stanford.slac.archiverappliance.PlainPB that return PlainPBStoragePlugin.CompressionModeModifier and TypeMethodDescriptionPlainPBStoragePlugin.getCompressionMode()Returns the enum constant of this class with the specified name.static PlainPBStoragePlugin.CompressionMode[]PlainPBStoragePlugin.CompressionMode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in edu.stanford.slac.archiverappliance.PlainPB with parameters of type PlainPBStoragePlugin.CompressionModeModifier and TypeMethodDescriptionstatic Path[]PlainPBPathNameUtility.getAllPathsForPV(ArchPaths archPaths, String rootFolder, String pvName, String extension, PartitionGranularity granularity, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) This method returns all the paths that could contain data for a PV sorted according to the name (which in our case should translate to time).static PathPlainPBPathNameUtility.getFileName(String rootFolder, String pvName, Instant ts, String extension, PartitionGranularity partitionGranularity, boolean createParentFolder, ArchPaths paths, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) This method returns the path for a given pv for a given time based on the partitionGranularitystatic PathPlainPBPathNameUtility.getMostRecentPathBeforeTime(ArchPaths archPaths, String rootFolder, String pvName, Instant startts, String extension, PartitionGranularity granularity, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) If a PV changes infrequently, we often will not have a sample in the given time frame.static PathPlainPBPathNameUtility.getPathNameForTime(String rootFolder, String pvName, Instant ts, PartitionGranularity partitionGranularity, ArchPaths paths, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) static Path[]PlainPBPathNameUtility.getPathsBeforeCurrentPartition(ArchPaths archPaths, String rootFolder, String pvName, Instant currentTime, String extension, PartitionGranularity granularity, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) The PlainPB storage plugin partitions files according to time and partition granularity.static Path[]PlainPBPathNameUtility.getPathsWithData(ArchPaths archPaths, String rootFolder, String pvName, Instant startts, Instant endts, String extension, PartitionGranularity granularity, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) Given a parent folder, this method returns a list of all the paths with data that falls within the specified timeframe.static PathPlainPBPathNameUtility.getPreviousPartitionBeforeTime(ArchPaths archPaths, String rootFolder, String pvName, Instant startts, String extension, PartitionGranularity granularity, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) If a PV changes infrequently, we often will not have a sample in the given time frame.static PathPlainPBPathNameUtility.getSparsifiedPathNameForTime(String rootFolder, String pvName, Instant ts, PartitionGranularity partitionGranularity, ArchPaths paths, PlainPBStoragePlugin.CompressionMode compressionMode, PVNameToKeyMapping pv2key) protected PathAppendDataStateData.preparePartition(String pvName, EventStream stream, BasicContext context, String extension, String extensionToCopyFrom, Instant ts, Path pvPath, PlainPBStoragePlugin.CompressionMode compressionMode) Prepare a new partition.protected voidAppendDataStateData.shouldISwitchPartitions(BasicContext context, String pvName, String extension, Instant ts, PlainPBStoragePlugin.CompressionMode compressionMode) Should we switch to a new partition? If so, return the new partition, else return the current partition.Constructors in edu.stanford.slac.archiverappliance.PlainPB with parameters of type PlainPBStoragePlugin.CompressionModeModifierConstructorDescriptionAppendDataStateData(PartitionGranularity partitionGranularity, String rootFolder, String desc, Instant lastKnownTimestamp, PVNameToKeyMapping pv2key, PlainPBStoragePlugin.CompressionMode compressionMode)