Class PartitionEntry

java.lang.Object
com.arpnetworking.clusteraggregator.models.ebean.PartitionEntry

@Entity public class PartitionEntry extends Object
Model that holds the data for a partition.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot com)
  • 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 key
      partitionSet - the partition set
      database - the database backing the data
      Returns:
      The partition entry if it exists, otherwise null
    • getId

      public Long getId()
    • setId

      public void setId(Long value)
    • getCreatedAt

      public Timestamp getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(Timestamp value)
    • getUpdatedAt

      public Timestamp getUpdatedAt()
    • setUpdatedAt

      public void setUpdatedAt(Timestamp value)
    • getVersion

      public Long getVersion()
    • setVersion

      public void setVersion(Long value)
    • getPartition

      public Partition getPartition()
    • setPartition

      public void setPartition(Partition value)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String value)