Package cern.nxcals.api.domain
Class TimeEntityPartitionType
- java.lang.Object
-
- cern.nxcals.api.domain.TimeEntityPartitionType
-
public class TimeEntityPartitionType extends java.lang.ObjectSpecific implementation of the partitioning using time partitions and entity buckets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeEntityPartitionType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeEntityPartitionType.Builderbuilder()protected booleancanEqual(java.lang.Object other)static doublechangePercentage(TimeEntityPartitionType oldValue, TimeEntityPartitionType newValue)booleanequals(java.lang.Object o)static TimeEntityPartitionTypefrom(java.lang.String partInfoAsString)intgetEntityBucketCount()intgetTimePartitionCount()inthashCode()static TimeEntityPartitionTypenext(TimeEntityPartitionType input, int increment)static TimeEntityPartitionTypeof(int timePartitions, int entityBuckets)static TimeEntityPartitionTypeofGbFiles(long targetNbOf1GBFiles)intslots()java.lang.StringtoString()
-
-
-
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:
toStringin 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-