Class StreamPartitionMessage
java.lang.Object
com.here.platform.data.client.service.stream.StreamPartitionMessage
- All Implemented Interfaces:
Partition,com.here.platform.data.client.scaladsl.Partition,HasCheckpointing,Serializable
- Direct Known Subclasses:
StreamEmbeddedPartitionMessage,StreamReferencedPartitionMessage
public abstract class StreamPartitionMessage
extends Object
implements com.here.platform.data.client.scaladsl.Partition, HasCheckpointing
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<String>static StreamPartitionMessageapply(String layer, StreamMessage msg, boolean isCompressed) scala.Option<CheckpointMark>scala.Option<String>checksum()scala.Option<Object>scala.Option<String>crc()scala.Option<Object>dataSize()Optional value for additional metadataThe checksum field is optional.Optional value for the size of the compressed partition data in bytes.getCrc()The crc field is optional.Optional value for the size of the partition data in bytes.getLayer()Name of the layer.Name of the partition.Optional value for the stream or index record timestampbooleanReturn true if partition represent a delete modificationlongoffset()intscala.Option<Object>withCheckpoint(CheckpointMark checkpoint) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.here.platform.data.client.javadsl.Partition
getCheckpointsMethods inherited from interface com.here.platform.data.client.scaladsl.Partition
layer
-
Constructor Details
-
StreamPartitionMessage
-
-
Method Details
-
apply
-
streamPartition
public int streamPartition() -
offset
public long offset() -
partition
- Specified by:
partitionin interfacecom.here.platform.data.client.scaladsl.Partition
-
checksum
- Specified by:
checksumin interfacecom.here.platform.data.client.scaladsl.Partition
-
crc
- Specified by:
crcin interfacecom.here.platform.data.client.scaladsl.Partition
-
dataSize
- Specified by:
dataSizein interfacecom.here.platform.data.client.scaladsl.Partition
-
compressedDataSize
- Specified by:
compressedDataSizein interfacecom.here.platform.data.client.scaladsl.Partition
-
additionalMetadata
- Specified by:
additionalMetadatain interfacecom.here.platform.data.client.scaladsl.Partition
-
isDeleted
public boolean isDeleted()Description copied from interface:PartitionReturn true if partition represent a delete modification -
timestamp
- Specified by:
timestampin interfacecom.here.platform.data.client.scaladsl.Partition
-
getPartition
Description copied from interface:PartitionName of the partition. If the partition is using a tiling partitioning scheme, this is the id of the tile. The name cannot be empty. Maximum length of this field is 500 characters.- Specified by:
getPartitionin interfacePartition
-
getLayer
Description copied from interface:PartitionName of the layer. Content of this field must refer to a valid layer already configured in the catalog configuration. Allowed are only: a-z, A-Z, 0-9, '_' and '-' characters. The partition layer cannot be empty. Maximum length is 50 characters. -
getAdditionalMetadata
Description copied from interface:PartitionOptional value for additional metadata- Specified by:
getAdditionalMetadatain interfacePartition
-
getTimestamp
Description copied from interface:PartitionOptional value for the stream or index record timestamp- Specified by:
getTimestampin interfacePartition
-
getChecksum
Description copied from interface:PartitionThe checksum field is optional. It is only included if checksum was requested in the API call (using 'additionalFields' query parameter) and if a checksum was provided during commit of the partition. It should be set to the sha1 checksum of the data content if data comparison needs to work for this catalog. The maximum length of checksum field is 128 characters.- Specified by:
getChecksumin interfacePartition
-
getCrc
Description copied from interface:PartitionThe crc field is optional. It is only included if crc was requested in the API call (using 'additionalFields' query parameter) and if a crc was provided during commit of the partition. -
getDataSize
Description copied from interface:PartitionOptional value for the size of the partition data in bytes. It is only included if the dataSize field was requested in the API call, and if a dataSize was provided during commit of the partition.- Specified by:
getDataSizein interfacePartition
-
getCompressedDataSize
Description copied from interface:PartitionOptional value for the size of the compressed partition data in bytes. It is only included if the compressedDataSize field was requested in the API call, and if a compressedDataSize was provided during commit of the partition.- Specified by:
getCompressedDataSizein interfacePartition
-
checkpoint
- Specified by:
checkpointin interfaceHasCheckpointing- Specified by:
checkpointin interfacecom.here.platform.data.client.scaladsl.Partition
-
withCheckpoint
- Specified by:
withCheckpointin interfaceHasCheckpointing
-