@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
IOExceptionpublic TimeSeriesDatabase(File pathToDatabaseFile, byte... metaData) throws IOException
IOExceptionpublic TimeSeriesDatabase(File pathToDatabaseFile, boolean isWrite, byte... metaData) throws IOException
IOExceptionpublic void reReadTableInfos()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean hasTSTable(String tableName)
public void addTSTable(String tableName, byte[] tableMetaData, int sampleTime, String[] columnNames, String[] columnMetaData) throws IOException
IOExceptionpublic void addTSTable(String tableName, byte[] tableMetaData, int sampleTime, String[] columnNames, byte[][] columnMetaData) throws IOException
IOExceptionpublic void write(long time,
String tableName,
long[] values)
public void flush()
throws IOException
IOExceptionpublic Collection<TSTable> getTSTables()
public TimeSeries readAll(String tableName) throws IOException
IOExceptionpublic long readStartDate(String tableName) throws IOException
IOExceptionpublic TimeSeries read(String tableName, long startTime, long endTime) throws IOException
IOExceptionpublic String getDBFilePath()
public org.jfree.chart.JFreeChart createHeatJFreeChart(String tableName) throws IOException
IOExceptionpublic org.jfree.chart.JFreeChart createHeatJFreeChart(String tableName, long startTime, long endTime) throws IOException
IOExceptionpublic org.jfree.chart.JFreeChart createMinMaxAvgJFreeChart(String tableName) throws IOException
IOExceptionpublic org.jfree.chart.JFreeChart createMinMaxAvgJFreeChart(String tableName, long startTime, long endTime) throws IOException
IOExceptionpublic org.jfree.chart.JFreeChart createCountJFreeChart(String tableName) throws IOException
IOExceptionpublic org.jfree.chart.JFreeChart createCountJFreeChart(String tableName, long startTime, long endTime) throws IOException
IOExceptionpublic List<org.jfree.chart.JFreeChart> createJFreeCharts(String tableName) throws IOException
IOExceptionpublic List<org.jfree.chart.JFreeChart> createJFreeCharts(String tableName, long startTime, long endTime) throws IOException
IOExceptionpublic 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
IOExceptionpublic void writeCsvTables(List<String> tableNames, File output) throws IOException
IOExceptionpublic void tail(long pollMillis,
long from,
TSDataHandler handler)
throws IOException
IOExceptionpublic String getFilePath()
public List<String> generateCharts(long startTimeMillis, long endTimeMillis, int width, int height) throws IOException
startTimeMillis - endTimeMillis - width - height - IOExceptionpublic 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
IOExceptionCopyright © 2018 SPF4J. All rights reserved.