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 aRegularSerializableDataset
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of thearchiveTime
record component.long
Returns the value of thedataIndex
record component.de.bsvrz.dav.daf.main.DataState
Gibt den Zustand des Datensatzes zurück.long
dataTime()
Returns the value of thedataTime
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Schätz den Speicherverbrauch dieses Objektsfinal int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisAlreadyCompressed
record component.de.bsvrz.dav.daf.main.Data
Gibt den ursprünglichen empfangenen Dateninhalt zurück.byte[]
Returns the value of theserializedData
record component.toString()
Returns a string representation of this record class.int
Returns the value of theuncompressedSize
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aRegularSerializableDataset
record class.- Parameters:
archiveTime
- the value for thearchiveTime
record componentdataTime
- the value for thedataTime
record componentdataIndex
- the value for thedataIndex
record componentserializedData
- the value for theserializedData
record componentuncompressedSize
- the value for theuncompressedSize
record componentisAlreadyCompressed
- the value for theisAlreadyCompressed
record component
-
-
Method Details
-
dataState
@NotNull public de.bsvrz.dav.daf.main.DataState dataState()Description copied from interface:SerializableDataset
Gibt den Zustand des Datensatzes zurück.- Specified by:
dataState
in interfaceSerializableDataset
- Returns:
- den Zustand des Datensatzes
-
estimateMemoryUsage
public long estimateMemoryUsage()Description copied from interface:SerializableDataset
Schätz den Speicherverbrauch dieses Objekts- Specified by:
estimateMemoryUsage
in interfaceSerializableDataset
- Returns:
- Speicherverbrauch in Bytes
-
originalData
public de.bsvrz.dav.daf.main.Data originalData()Description copied from interface:SerializableDataset
Gibt 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:
originalData
in 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 thearchiveTime
record component.- Specified by:
archiveTime
in interfaceSerializableDataset
- Returns:
- the value of the
archiveTime
record component
-
dataTime
public long dataTime()Returns the value of thedataTime
record component.- Specified by:
dataTime
in interfaceSerializableDataset
- Returns:
- the value of the
dataTime
record component
-
dataIndex
public long dataIndex()Returns the value of thedataIndex
record component.- Specified by:
dataIndex
in interfaceSerializableDataset
- Returns:
- the value of the
dataIndex
record component
-
serializedData
@NotNull public byte[] serializedData()Returns the value of theserializedData
record component.- Specified by:
serializedData
in interfaceSerializableDataset
- Returns:
- the value of the
serializedData
record component
-
uncompressedSize
public int uncompressedSize()Returns the value of theuncompressedSize
record component.- Specified by:
uncompressedSize
in interfaceSerializableDataset
- Returns:
- the value of the
uncompressedSize
record component
-
isAlreadyCompressed
public boolean isAlreadyCompressed()Returns the value of theisAlreadyCompressed
record component.- Returns:
- the value of the
isAlreadyCompressed
record component
-