Class SDTEncoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.SDTEncoder
-
public class SDTEncoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SDTEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intencode(long[] timestamps, double[] values, int batchSize)intencode(long[] timestamps, float[] values, int batchSize)intencode(long[] timestamps, int[] values, int batchSize)intencode(long[] timestamps, long[] values, int batchSize)booleanencodeDouble(long time, double value)booleanencodeFloat(long time, float value)booleanencodeInt(long time, int value)booleanencodeLong(long time, long value)doublegetCompDeviation()longgetCompMaxTime()longgetCompMinTime()doublegetDoubleValue()floatgetFloatValue()intgetIntValue()longgetLongValue()longgetTime()voidsetCompDeviation(double compDeviation)voidsetCompMaxTime(long compMaxTime)voidsetCompMinTime(long compMinTime)
-
-
-
Method Detail
-
encodeFloat
public boolean encodeFloat(long time, float value)
-
encodeLong
public boolean encodeLong(long time, long value)
-
encodeInt
public boolean encodeInt(long time, int value)
-
encodeDouble
public boolean encodeDouble(long time, double value)
-
encode
public int encode(long[] timestamps, double[] values, int batchSize)
-
encode
public int encode(long[] timestamps, int[] values, int batchSize)
-
encode
public int encode(long[] timestamps, long[] values, int batchSize)
-
encode
public int encode(long[] timestamps, float[] values, int batchSize)
-
setCompDeviation
public void setCompDeviation(double compDeviation)
-
getCompDeviation
public double getCompDeviation()
-
setCompMinTime
public void setCompMinTime(long compMinTime)
-
getCompMinTime
public long getCompMinTime()
-
setCompMaxTime
public void setCompMaxTime(long compMaxTime)
-
getCompMaxTime
public long getCompMaxTime()
-
getTime
public long getTime()
-
getIntValue
public int getIntValue()
-
getDoubleValue
public double getDoubleValue()
-
getLongValue
public long getLongValue()
-
getFloatValue
public float getFloatValue()
-
-