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
IOException
public long writeTableDef(TableDef tableDef) throws IOException
IOException
public void writeDataRow(long tableId, long timestamp, long... data) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public File getFile()
public static void toByteArray(long pvalue, byte[] bytes, int idx)
public static void toOutputStream(long pvalue, OutputStream os) throws IOException
IOException
public void flush() throws IOException
flush
in interface Flushable
IOException
public Header getHeader()
Copyright © 2018 SPF4J. All rights reserved.