Package org.apache.iotdb.tsfile.read
Class TimeValuePair
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.TimeValuePair
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TimeValuePair>
public class TimeValuePair extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TimeValuePair>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeValuePair(long timestamp, TsPrimitiveType value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TimeValuePair o)booleanequals(java.lang.Object object)intgetSize()longgetTimestamp()TsPrimitiveTypegetValue()inthashCode()voidsetTimestamp(long timestamp)voidsetValue(TsPrimitiveType value)java.lang.StringtoString()
-
-
-
Constructor Detail
-
TimeValuePair
public TimeValuePair(long timestamp, TsPrimitiveType value)
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getValue
public TsPrimitiveType getValue()
-
setValue
public void setValue(TsPrimitiveType value)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getSize
public int getSize()
-
compareTo
public int compareTo(TimeValuePair o)
- Specified by:
compareToin interfacejava.lang.Comparable<TimeValuePair>
-
-