@Deprecated public final class TimeSeriesDatabase extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static int |
VERSION
Deprecated.
|
Constructor and Description |
---|
TimeSeriesDatabase(File pathToDatabaseFile)
Deprecated.
|
TimeSeriesDatabase(File pathToDatabaseFile,
boolean isWrite,
byte... metaData)
Deprecated.
|
TimeSeriesDatabase(File pathToDatabaseFile,
byte... metaData)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addTSTable(String tableName,
byte[] tableMetaData,
int sampleTime,
String[] columnNames,
byte[][] columnMetaData)
Deprecated.
|
void |
addTSTable(String tableName,
byte[] tableMetaData,
int sampleTime,
String[] columnNames,
String[] columnMetaData)
Deprecated.
|
static boolean |
canGenerateCount(TSTable info)
Deprecated.
|
static boolean |
canGenerateHeatChart(TSTable info)
Deprecated.
|
static boolean |
canGenerateMinMaxAvgCount(TSTable info)
Deprecated.
|
void |
close()
Deprecated.
|
org.jfree.chart.JFreeChart |
createCountJFreeChart(String tableName)
Deprecated.
|
org.jfree.chart.JFreeChart |
createCountJFreeChart(String tableName,
long startTime,
long endTime)
Deprecated.
|
static org.jfree.chart.JFreeChart |
createCountJFreeChart(TimeSeries data,
TSTable info)
Deprecated.
|
org.jfree.chart.JFreeChart |
createHeatJFreeChart(String tableName)
Deprecated.
|
org.jfree.chart.JFreeChart |
createHeatJFreeChart(String tableName,
long startTime,
long endTime)
Deprecated.
|
static org.jfree.chart.JFreeChart |
createHeatJFreeChart(TimeSeries data,
TSTable info)
Deprecated.
|
List<org.jfree.chart.JFreeChart> |
createJFreeCharts(String tableName)
Deprecated.
|
List<org.jfree.chart.JFreeChart> |
createJFreeCharts(String tableName,
long startTime,
long endTime)
Deprecated.
|
static List<org.jfree.chart.JFreeChart> |
createJFreeCharts(TimeSeries data,
TSTable info)
Deprecated.
|
org.jfree.chart.JFreeChart |
createMinMaxAvgJFreeChart(String tableName)
Deprecated.
|
org.jfree.chart.JFreeChart |
createMinMaxAvgJFreeChart(String tableName,
long startTime,
long endTime)
Deprecated.
|
static org.jfree.chart.JFreeChart |
createMinMaxAvgJFreeChart(TimeSeries data,
TSTable info)
Deprecated.
|
void |
flush()
Deprecated.
|
List<String> |
generateCharts(int width,
int height)
Deprecated.
|
List<String> |
generateCharts(long startTimeMillis,
long endTimeMillis,
int width,
int height)
Deprecated.
Quantized recorders will have min, max avg charts and distribution charts generated.
|
String[] |
getColumnNames(String tableName)
Deprecated.
|
String |
getDBFilePath()
Deprecated.
|
String |
getFilePath()
Deprecated.
|
byte[] |
getMetaData()
Deprecated.
|
TSTable |
getTSTable(String tableName)
Deprecated.
|
Map<String,TSTable> |
getTsTables()
Deprecated.
|
Collection<TSTable> |
getTSTables()
Deprecated.
|
boolean |
hasTSTable(String tableName)
Deprecated.
|
static boolean |
isCounterOnly(TSTable info)
Deprecated.
|
TimeSeries |
read(String tableName,
long startTime,
long endTime)
Deprecated.
|
TimeSeries |
readAll(String tableName)
Deprecated.
|
long |
readStartDate(String tableName)
Deprecated.
|
void |
reReadTableInfos()
Deprecated.
|
void |
tail(long pollMillis,
long from,
TSDataHandler handler)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
write(long time,
String tableName,
long[] values)
Deprecated.
|
void |
writeCsvTable(String tableName,
File output)
Deprecated.
|
void |
writeCsvTables(List<String> tableNames,
File output)
Deprecated.
|
public static final int VERSION
public TimeSeriesDatabase(File pathToDatabaseFile) throws IOException
IOException
public TimeSeriesDatabase(File pathToDatabaseFile, byte... metaData) throws IOException
IOException
public TimeSeriesDatabase(File pathToDatabaseFile, boolean isWrite, byte... metaData) throws IOException
IOException
public void reReadTableInfos() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean hasTSTable(String tableName)
public void addTSTable(String tableName, byte[] tableMetaData, int sampleTime, String[] columnNames, String[] columnMetaData) throws IOException
IOException
public void addTSTable(String tableName, byte[] tableMetaData, int sampleTime, String[] columnNames, byte[][] columnMetaData) throws IOException
IOException
public void write(long time, String tableName, long[] values)
public void flush() throws IOException
IOException
public Collection<TSTable> getTSTables()
public TimeSeries readAll(String tableName) throws IOException
IOException
public long readStartDate(String tableName) throws IOException
IOException
public TimeSeries read(String tableName, long startTime, long endTime) throws IOException
IOException
public String getDBFilePath()
public org.jfree.chart.JFreeChart createHeatJFreeChart(String tableName) throws IOException
IOException
public org.jfree.chart.JFreeChart createHeatJFreeChart(String tableName, long startTime, long endTime) throws IOException
IOException
public org.jfree.chart.JFreeChart createMinMaxAvgJFreeChart(String tableName) throws IOException
IOException
public org.jfree.chart.JFreeChart createMinMaxAvgJFreeChart(String tableName, long startTime, long endTime) throws IOException
IOException
public org.jfree.chart.JFreeChart createCountJFreeChart(String tableName) throws IOException
IOException
public org.jfree.chart.JFreeChart createCountJFreeChart(String tableName, long startTime, long endTime) throws IOException
IOException
public List<org.jfree.chart.JFreeChart> createJFreeCharts(String tableName) throws IOException
IOException
public List<org.jfree.chart.JFreeChart> createJFreeCharts(String tableName, long startTime, long endTime) throws IOException
IOException
public static org.jfree.chart.JFreeChart createHeatJFreeChart(TimeSeries data, TSTable info)
public static org.jfree.chart.JFreeChart createMinMaxAvgJFreeChart(TimeSeries data, TSTable info)
public static org.jfree.chart.JFreeChart createCountJFreeChart(TimeSeries data, TSTable info)
public static List<org.jfree.chart.JFreeChart> createJFreeCharts(TimeSeries data, TSTable info)
public byte[] getMetaData()
public void writeCsvTable(String tableName, File output) throws IOException
IOException
public void writeCsvTables(List<String> tableNames, File output) throws IOException
IOException
public void tail(long pollMillis, long from, TSDataHandler handler) throws IOException
IOException
public String getFilePath()
public List<String> generateCharts(long startTimeMillis, long endTimeMillis, int width, int height) throws IOException
startTimeMillis
- endTimeMillis
- width
- height
- IOException
public static boolean isCounterOnly(TSTable info)
public static boolean canGenerateMinMaxAvgCount(TSTable info)
public static boolean canGenerateCount(TSTable info)
public static boolean canGenerateHeatChart(TSTable info)
public List<String> generateCharts(int width, int height) throws IOException
IOException
Copyright © 2018 SPF4J. All rights reserved.