Package cern.nxcals.api.domain
Class TimeEntityPartitionType
- java.lang.Object
-
- cern.nxcals.api.domain.TimeEntityPartitionType
-
public class TimeEntityPartitionType extends java.lang.Object
Specific implementation of the partitioning using time partitions and entity buckets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeEntityPartitionType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeEntityPartitionType.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
static double
changePercentage(TimeEntityPartitionType oldValue, TimeEntityPartitionType newValue)
boolean
equals(java.lang.Object o)
static TimeEntityPartitionType
from(java.lang.String partInfoAsString)
int
getEntityBucketCount()
int
getTimePartitionCount()
int
hashCode()
static TimeEntityPartitionType
next(TimeEntityPartitionType input, int increment)
static TimeEntityPartitionType
of(int timePartitions, int entityBuckets)
static TimeEntityPartitionType
ofGbFiles(long targetNbOf1GBFiles)
int
slots()
java.lang.String
toString()
-
-
-
Method Detail
-
ofGbFiles
public static TimeEntityPartitionType ofGbFiles(long targetNbOf1GBFiles)
-
next
public static TimeEntityPartitionType next(TimeEntityPartitionType input, int increment)
-
of
public static TimeEntityPartitionType of(int timePartitions, int entityBuckets)
-
from
public static TimeEntityPartitionType from(java.lang.String partInfoAsString)
-
slots
public int slots()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
changePercentage
public static double changePercentage(TimeEntityPartitionType oldValue, TimeEntityPartitionType newValue)
-
builder
public static TimeEntityPartitionType.Builder builder()
-
getTimePartitionCount
public int getTimePartitionCount()
-
getEntityBucketCount
public int getEntityBucketCount()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-