public class SDTEncoder extends Object
| Constructor and Description |
|---|
SDTEncoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
encode(long[] timestamps,
double[] values,
int batchSize) |
int |
encode(long[] timestamps,
float[] values,
int batchSize) |
int |
encode(long[] timestamps,
int[] values,
int batchSize) |
int |
encode(long[] timestamps,
long[] values,
int batchSize) |
boolean |
encodeDouble(long time,
double value) |
boolean |
encodeFloat(long time,
float value) |
boolean |
encodeInt(long time,
int value) |
boolean |
encodeLong(long time,
long value) |
double |
getCompDeviation() |
long |
getCompMaxTime() |
long |
getCompMinTime() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
long |
getTime() |
void |
setCompDeviation(double compDeviation) |
void |
setCompMaxTime(long compMaxTime) |
void |
setCompMinTime(long compMinTime) |
public boolean encodeFloat(long time,
float value)
public boolean encodeLong(long time,
long value)
public boolean encodeInt(long time,
int value)
public boolean encodeDouble(long time,
double value)
public int encode(long[] timestamps,
double[] values,
int batchSize)
public int encode(long[] timestamps,
int[] values,
int batchSize)
public int encode(long[] timestamps,
long[] values,
int batchSize)
public int encode(long[] timestamps,
float[] values,
int batchSize)
public void setCompDeviation(double compDeviation)
public double getCompDeviation()
public void setCompMinTime(long compMinTime)
public long getCompMinTime()
public void setCompMaxTime(long compMaxTime)
public long getCompMaxTime()
public long getTime()
public int getIntValue()
public double getDoubleValue()
public long getLongValue()
public float getFloatValue()
Copyright © 2022 The Apache Software Foundation. All rights reserved.