public class TemporalBinningStrategy extends Object implements IndexBinningStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
TemporalBinningStrategy.Unit |
| Modifier and Type | Field and Description |
|---|---|
protected static long |
MILLIS_PER_DAY |
| Constructor and Description |
|---|
TemporalBinningStrategy() |
TemporalBinningStrategy(TemporalBinningStrategy.Unit unit) |
TemporalBinningStrategy(TemporalBinningStrategy.Unit unit,
String timezone) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
fromBinary(byte[] bytes) |
byte[] |
getBinId(long millis) |
double |
getBinMax() |
double |
getBinMin() |
BinValue |
getBinnedValue(double value)
Method used to bin a raw date in milliseconds to a binned value of the Binning Strategy.
|
NumericRange |
getDenormalizedRanges(BinRange binnedRange) |
int |
getFixedBinIdSize() |
org.threeten.extra.Interval |
getInterval(byte[] binId) |
BinRange[] |
getNormalizedRanges(org.threeten.extra.Interval range) |
BinRange[] |
getNormalizedRanges(NumericData range) |
int |
hashCode() |
protected void |
setToEpoch(Calendar value) |
byte[] |
toBinary() |
protected static final long MILLIS_PER_DAY
public TemporalBinningStrategy()
public TemporalBinningStrategy(TemporalBinningStrategy.Unit unit)
public TemporalBinningStrategy(TemporalBinningStrategy.Unit unit, String timezone)
public double getBinMin()
getBinMin in interface IndexBinningStrategypublic double getBinMax()
getBinMax in interface IndexBinningStrategypublic BinValue getBinnedValue(double value)
getBinnedValue in interface IndexBinningStrategyprotected void setToEpoch(Calendar value)
public int getFixedBinIdSize()
getFixedBinIdSize in interface IndexBinningStrategypublic byte[] getBinId(long millis)
public BinRange[] getNormalizedRanges(org.threeten.extra.Interval range)
public BinRange[] getNormalizedRanges(NumericData range)
getNormalizedRanges in interface IndexBinningStrategypublic byte[] toBinary()
toBinary in interface Persistablepublic void fromBinary(byte[] bytes)
fromBinary in interface Persistablepublic NumericRange getDenormalizedRanges(BinRange binnedRange)
getDenormalizedRanges in interface IndexBinningStrategypublic org.threeten.extra.Interval getInterval(byte[] binId)
Copyright © 2013–2021. All rights reserved.