Record Class RegularSerializableDataset
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.writer.RegularSerializableDataset
- Record Components:
archiveTime- ArchivzeitdataTime- DatenzeitdataIndex- DatenindexserializedData- Serialisierte Daten (nur Nutzdaten, ohne Zeitstempel etc.)uncompressedSize- Unkomprimierte originale Größe oderContainerFile.NOT_COMPRESSED, falls nicht komprimiert.isAlreadyCompressed- Sind die Daten schon komprimiert?
- All Implemented Interfaces:
SerializableDataset
public record RegularSerializableDataset(long archiveTime, long dataTime, long dataIndex, byte[] serializedData, int uncompressedSize, boolean isAlreadyCompressed)
extends Record
implements SerializableDataset
Einfache
SerializableDataset-Implementierung.-
Constructor Summary
ConstructorsConstructorDescriptionRegularSerializableDataset(long archiveTime, long dataTime, long dataIndex, byte[] serializedData) EinfacheSerializableDataset-Implementierung.RegularSerializableDataset(long archiveTime, long dataTime, long dataIndex, byte[] serializedData, int uncompressedSize, boolean isAlreadyCompressed) Creates an instance of aRegularSerializableDatasetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thearchiveTimerecord component.longReturns the value of thedataIndexrecord component.de.bsvrz.dav.daf.main.DataStateGibt den Zustand des Datensatzes zurück.longdataTime()Returns the value of thedataTimerecord component.final booleanIndicates whether some other object is "equal to" this one.longSchätz den Speicherverbrauch dieses Objektsfinal inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAlreadyCompressedrecord component.de.bsvrz.dav.daf.main.DataGibt den ursprünglichen empfangenen Dateninhalt zurück.byte[]Returns the value of theserializedDatarecord component.toString()Returns a string representation of this record class.intReturns the value of theuncompressedSizerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.bsvrz.ars.ars.persistence.writer.SerializableDataset
asResultData, hasData
-
Constructor Details
-
RegularSerializableDataset
public RegularSerializableDataset(long archiveTime, long dataTime, long dataIndex, byte[] serializedData) EinfacheSerializableDataset-Implementierung. Konstruktor ohne Komprimierung.- Parameters:
archiveTime- ArchivzeitdataTime- DatenzeitdataIndex- DatenindexserializedData- Serialisierte Daten (nur Nutzdaten, ohne Zeitstempel etc.)
-
RegularSerializableDataset
public RegularSerializableDataset(long archiveTime, long dataTime, long dataIndex, @NotNull byte[] serializedData, int uncompressedSize, boolean isAlreadyCompressed) Creates an instance of aRegularSerializableDatasetrecord class.- Parameters:
archiveTime- the value for thearchiveTimerecord componentdataTime- the value for thedataTimerecord componentdataIndex- the value for thedataIndexrecord componentserializedData- the value for theserializedDatarecord componentuncompressedSize- the value for theuncompressedSizerecord componentisAlreadyCompressed- the value for theisAlreadyCompressedrecord component
-
-
Method Details
-
dataState
@NotNull public de.bsvrz.dav.daf.main.DataState dataState()Description copied from interface:SerializableDatasetGibt den Zustand des Datensatzes zurück.- Specified by:
dataStatein interfaceSerializableDataset- Returns:
- den Zustand des Datensatzes
-
estimateMemoryUsage
public long estimateMemoryUsage()Description copied from interface:SerializableDatasetSchätz den Speicherverbrauch dieses Objekts- Specified by:
estimateMemoryUsagein interfaceSerializableDataset- Returns:
- Speicherverbrauch in Bytes
-
originalData
public de.bsvrz.dav.daf.main.Data originalData()Description copied from interface:SerializableDatasetGibt den ursprünglichen empfangenen Dateninhalt zurück. Der Wert kann null sein und ist nur vorhanden, wenn die Daten vorher vom Datenverteiler empfangen wurden. Dies wird nur für die Quittierung benötigt.- Specified by:
originalDatain interfaceSerializableDataset- Returns:
- Originaler Datensatz
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
archiveTime
public long archiveTime()Returns the value of thearchiveTimerecord component.- Specified by:
archiveTimein interfaceSerializableDataset- Returns:
- the value of the
archiveTimerecord component
-
dataTime
public long dataTime()Returns the value of thedataTimerecord component.- Specified by:
dataTimein interfaceSerializableDataset- Returns:
- the value of the
dataTimerecord component
-
dataIndex
public long dataIndex()Returns the value of thedataIndexrecord component.- Specified by:
dataIndexin interfaceSerializableDataset- Returns:
- the value of the
dataIndexrecord component
-
serializedData
@NotNull public byte[] serializedData()Returns the value of theserializedDatarecord component.- Specified by:
serializedDatain interfaceSerializableDataset- Returns:
- the value of the
serializedDatarecord component
-
uncompressedSize
public int uncompressedSize()Returns the value of theuncompressedSizerecord component.- Specified by:
uncompressedSizein interfaceSerializableDataset- Returns:
- the value of the
uncompressedSizerecord component
-
isAlreadyCompressed
public boolean isAlreadyCompressed()Returns the value of theisAlreadyCompressedrecord component.- Returns:
- the value of the
isAlreadyCompressedrecord component
-