Java StringReader for FastBit. More...
Classes | |
class | ReadHandle |
An auxiliary thread-safe class to hold file locks and buffers. More... | |
Public Member Functions | |
FastBitStringReader () | |
FastBitStringReader constructor with default buffer length. | |
FastBitStringReader (long bufferSize) | |
FastBitStringReader constructor. | |
FastBitStringReader.ReadHandle | getHandle (FastBit fb, FastBit.QueryHandle fbHandle, String partition, String charsetName) |
Create FastBitStringReader.ReadHandle. | |
String[] | getQualifiedStrings (final FileChannel fc, final FastBitStringReader.ReadHandle handle, String column) throws FastBitStringReaderException |
Thread-safe FastBit String[] getter. | |
String[] | getQualifiedStrings (final FastBitStringReader.ReadHandle handle, String column) throws FastBitStringReaderException |
Thread-safe FastBit String[] getter. |
Java StringReader for FastBit.
It converts the strings retured from FastBit into strings that can be accessed from a Java program. See java/tests/TestFastBitJava.java for an example of use.
gov::lbl::fastbit::FastBitStringReader::FastBitStringReader | ( | long | bufferSize | ) | [inline] |
FastBitStringReader constructor.
bufferSize |
FastBitStringReader.ReadHandle gov::lbl::fastbit::FastBitStringReader::getHandle | ( | FastBit | fb, |
FastBit.QueryHandle | fbHandle, | ||
String | partition, | ||
String | charsetName | ||
) | [inline] |
Create FastBitStringReader.ReadHandle.
Currently FastBit.QueryHandle has not methods to get FastBit and partition.
fb | |
fbHandle | |
partition | |
charsetName |
String [] gov::lbl::fastbit::FastBitStringReader::getQualifiedStrings | ( | final FileChannel | fc, |
final FastBitStringReader.ReadHandle | handle, | ||
String | column | ||
) | throws FastBitStringReaderException [inline] |
Thread-safe FastBit String[] getter.
This function does not open and lock file.
fc | |
handle | |
column |
FastBitStringReaderException |
String [] gov::lbl::fastbit::FastBitStringReader::getQualifiedStrings | ( | final FastBitStringReader.ReadHandle | handle, |
String | column | ||
) | throws FastBitStringReaderException [inline] |
Thread-safe FastBit String[] getter.
This function opens and closes file.
handle | |
column |
FastBitStringReaderException |
![]() |