Package com.redis.lettucemod.timeseries
Class Sample
- java.lang.Object
-
- com.redis.lettucemod.timeseries.Sample
-
- Direct Known Subclasses:
KeySample
public class Sample extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSample.Builder
-
Field Summary
Fields Modifier and Type Field Description static longAUTO_TIMESTAMP
-
Constructor Summary
Constructors Constructor Description Sample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetTimestamp()doublegetValue()inthashCode()static Sampleof(double value)static Sampleof(long timestamp, double value)voidsetTimestamp(long timestamp)voidsetValue(double value)static Sample.Buildervalue(double value)
-
-
-
Field Detail
-
AUTO_TIMESTAMP
public static final long AUTO_TIMESTAMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getValue
public double getValue()
-
setValue
public void setValue(double value)
-
of
public static Sample of(double value)
-
of
public static Sample of(long timestamp, double value)
-
value
public static Sample.Builder value(double value)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-