| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
FILE_RECORD_SCHEMA |
| Constructor and Description |
|---|
TSDBWriter(File file,
int maxRowsPerBlock,
String description,
boolean append) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Commits the data to disk.
|
File |
getFile() |
Header |
getHeader() |
static void |
toByteArray(long pvalue,
byte[] bytes,
int idx) |
static void |
toOutputStream(long pvalue,
OutputStream os) |
String |
toString() |
void |
writeDataRow(long tableId,
long timestamp,
long... data) |
long |
writeTableDef(TableDef tableDef) |
@CreatesObligation public TSDBWriter(File file, int maxRowsPerBlock, String description, boolean append) throws IOException
IOExceptionpublic long writeTableDef(TableDef tableDef) throws IOException
IOExceptionpublic void writeDataRow(long tableId,
long timestamp,
long... data)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic File getFile()
public static void toByteArray(long pvalue,
byte[] bytes,
int idx)
public static void toOutputStream(long pvalue,
OutputStream os)
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic Header getHeader()
Copyright © 2018 SPF4J. All rights reserved.