PGpcCompactGpsMeasurement class
Persister for GpcCompactGpsMeasurement.
- Inheritance
-
- Object
- Persister
- PGpcEfficient<
GpcCompactGpsMeasurement> - PGpcCompactGpsMeasurement
Constructors
- PGpcCompactGpsMeasurement()
-
const
Properties
- chunkSize → int
-
Approximate number of bytes to use as chunk size when reading/writing.
After some basic testing settled on about 4 MB chunks, since some
performance checks with 1M GpsPoint in a GpcCompactGpsPoint showed
less than 15% performance improvements if huge chunk sizes are allowed
that fit the whole list in one go.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → String
-
Returns the signature string for this Persister.
no setterinherited
- signatureAndVersion → SignatureAndVersion
-
Override in children to indicate the signature of this class (used
to recognize when reading a file which persister to initialize)
and which version is written. The version should be increased
if for example new fields get persisted. In that case, the reader must
contain compatibility code for reading older versions.
no setteroverride
- supportedType → Type
-
Indicates what object type this Persister can persist, to be overridden
in child classes.
no setteroverride
- version → int
-
Indicates the version of the persistence method.
no setterinherited
Methods
-
getMetadata(
GpsPointsView< GpsPoint> view) → ByteData? -
Allows writing up to Persistence.maxMetadataLength bytes of extra
information in the file header. Override in children if needed.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readViewFromStream(
GpsPointsView< GpsPoint> view, StreamReaderState source, int version, ByteData metadata) → Future<void> -
Overwrites the contents of
view
(if it is not read-only) with the information fom thesource
.version
andmetadata
indicate the additional information that was read from the block header in the file, and may be used to e.g. convert old formats to new.inherited -
signatureFromString(
String sig) → String -
Makes sure that the specified
sig
, if too short, is extended to be of valid signature length.inherited -
signatureFromType(
Type type) → String -
Creates a default signature from the type. This should be used carefully,
since changing the name of the supportedType class in a refactoring can
lead to stored files becoming incompatible.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeViewToStream(
GpsPointsView< GpsPoint> view) → Stream<List< int> > -
Converts
view
to a Stream of bytes. Override in children.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited