Class PartitionBuilder
java.lang.Object
com.here.platform.data.client.javadsl.PartitionBuilder
- Direct Known Subclasses:
ReferencePartition.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Partitionbuild()withChecksum(Optional<String> checksum) Sets the checksum.withCompressedDataSize(OptionalLong compressedDataSize) Sets the precomputed compressed data size.Sets the crc.withDataSize(OptionalLong dataSize) Sets the dataSize.Sets the layer name.withPartition(String partition) Sets the partition id.withTimestamp(long timestamp) Sets the stream record's creation timestamp.
-
Constructor Details
-
PartitionBuilder
public PartitionBuilder()
-
-
Method Details
-
build
- Returns:
- A already committed partition
-
withChecksum
Sets the checksum.- Parameters:
checksum- precomputed checksum value- Returns:
- this PartitionBuilder
-
withCompressedDataSize
Sets the precomputed compressed data size.- Parameters:
compressedDataSize- precomputed compressed data size- Returns:
- this PartitionBuilder
-
withCrc
Sets the crc.- Parameters:
crc- precomputed crc value- Returns:
- this PartitionBuilder
-
withDataSize
Sets the dataSize.- Parameters:
dataSize- data size- Returns:
- this PartitionBuilder
-
withLayer
Sets the layer name.- Parameters:
layer- layer name- Returns:
- this PartitionBuilder
-
withPartition
Sets the partition id.- Parameters:
partition- partition id- Returns:
- this builder
-
withTimestamp
Sets the stream record's creation timestamp.- Parameters:
timestamp- the timestamp of the record, in milliseconds since epoch.- Returns:
- this PartitionBuilder
-