Class PartitionEntry
java.lang.Object
com.arpnetworking.clusteraggregator.models.ebean.PartitionEntry
Model that holds the data for a partition.
- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionEntry
findByKey
(String key, PartitionSet partitionSet, Database database) Looks up a partition entry by key and partition set name.getId()
getKey()
void
setCreatedAt
(Timestamp value) void
void
void
setPartition
(Partition value) void
setUpdatedAt
(Timestamp value) void
setVersion
(Long value)
-
Constructor Details
-
PartitionEntry
public PartitionEntry()
-
-
Method Details
-
findByKey
@Nullable public static PartitionEntry findByKey(String key, PartitionSet partitionSet, Database database) Looks up a partition entry by key and partition set name.- Parameters:
key
- the keypartitionSet
- the partition setdatabase
- the database backing the data- Returns:
- The partition entry if it exists, otherwise null
-
getId
-
setId
-
getCreatedAt
-
setCreatedAt
-
getUpdatedAt
-
setUpdatedAt
-
getVersion
-
setVersion
-
getPartition
-
setPartition
-
getKey
-
setKey
-