Java StringWriter for FastBit. More...
Classes | |
class | WriteHandle |
An auxiliary thread-safe class to hold file locks and buffers. More... | |
Public Member Functions | |
void | addCategories (String partition, String colname, String[] arr, String charsetName) throws FastBitStringWriterException |
Add String values with a small number of distinct choices. More... | |
void | addRow (final WriteHandle handler, String row) throws FastBitStringWriterException |
Add String values row by row. More... | |
synchronized void | addStringColumnToMetadata (String partitionDirectory, String columnName, String type) throws FastBitStringWriterException |
Add column info to existing index metadata. More... | |
void | addText (String partition, String colname, String[] arr, String charsetName) throws FastBitStringWriterException |
Add arbitrary string values. More... | |
synchronized void | createMetadata (String partitionDirectory, String columnName, String type, int rowCount) throws FastBitStringWriterException |
Create metadata for a data partition with a single column. More... | |
FastBitStringWriter () | |
FastBitStringWriter constructor with default buffer size. | |
FastBitStringWriter (int bufferLength) | |
FastBitStringWriter constructor. More... | |
WriteHandle | getHandle (String partition, String colname, String charsetName) throws FastBitStringWriterException |
Create WriteHandle. More... | |
void | saveDictionary (final WriteHandle handler, final Set< String > keys, String fileName) throws FastBitStringWriterException |
Add dictionary strings to a .dic file. More... | |
Java StringWriter for FastBit.
For a Java program to write string-valued data to a format required by FastBit. See java/tests/TestFastBitJava.java for an example of use.
|
inline |
FastBitStringWriter constructor.
bufferLength |
|
inline |
Add String values with a small number of distinct choices.
partition | |
colname | |
arr | |
charsetName |
FastBitStringWriterException |
References gov.lbl.fastbit.FastBitStringWriter.addRow(), gov.lbl.fastbit.FastBitStringWriter.getHandle(), and gov.lbl.fastbit.FastBitStringWriter.saveDictionary().
|
inline |
Add String values row by row.
handler | The object to handle the actual write operation. |
row | The content of the row to be written. |
FastBitStringWriterException |
Referenced by gov.lbl.fastbit.FastBitStringWriter.addCategories(), and gov.lbl.fastbit.FastBitStringWriter.addText().
|
inline |
Add column info to existing index metadata.
partitionDirectory | |
columnName | |
type |
FastBitStringWriterException |
|
inline |
Add arbitrary string values.
partition | |
colname | |
arr | |
charsetName |
FastBitStringWriterException |
References gov.lbl.fastbit.FastBitStringWriter.addRow(), and gov.lbl.fastbit.FastBitStringWriter.getHandle().
|
inline |
Create metadata for a data partition with a single column.
partitionDirectory | Directory for the data partition |
columnName | Column name. Also used as the data partition name. |
type | Data type. |
rowCount | Number of rows. |
FastBitStringWriterException |
|
inline |
Create WriteHandle.
partition | |
colname | |
charsetName |
FastBitStringWriterException |
Referenced by gov.lbl.fastbit.FastBitStringWriter.addCategories(), and gov.lbl.fastbit.FastBitStringWriter.addText().
|
inline |
Add dictionary strings to a .dic file.
handler | |
keys | |
fileName |
FastBitStringWriterException |
Referenced by gov.lbl.fastbit.FastBitStringWriter.addCategories().