public class TimeSeries extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Integer> |
buckets |
protected int |
maxlen |
protected int |
scale |
protected int |
timestart |
protected int |
total |
| Constructor and Description |
|---|
TimeSeries() |
TimeSeries(int timestart,
int scale,
int maxlen) |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,Integer> |
arrayIntegerDeserialize(String input) |
String |
arrayIntegerSerialize(Map arar) |
String |
arrayIntegerSerializeMap(int a,
int b) |
void |
click(int time) |
void |
deserialize(String data) |
Map<Integer,Integer> |
reconstruct() |
Map<Integer,Integer> |
rescale(int factor) |
String |
serialize(int maxlength) |
Map |
viewModel() |
protected int timestart
protected int scale
protected int maxlen
protected int total
public TimeSeries()
public TimeSeries(int timestart,
int scale,
int maxlen)
public void click(int time)
throws IOException
IOExceptionpublic Map<Integer,Integer> reconstruct() throws IOException
IOExceptionpublic Map viewModel() throws IOException
IOExceptionpublic Map<Integer,Integer> rescale(int factor) throws IOException
IOExceptionpublic void deserialize(String data) throws IOException
IOExceptionpublic String serialize(int maxlength) throws Exception, IOException
ExceptionIOExceptionpublic String arrayIntegerSerialize(Map arar) throws IOException
IOExceptionpublic String arrayIntegerSerializeMap(int a, int b) throws IOException
IOExceptionpublic Map<Integer,Integer> arrayIntegerDeserialize(String input) throws IOException
IOExceptionCopyright 2015- Charles R. Severance and licensed CC-BY Attribution 4.0