Classes | Public Member Functions | List of all members
gov.lbl.fastbit.FastBitStringReader Class Reference

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. More...
 
FastBitStringReader.ReadHandle getHandle (FastBit fb, FastBit.QueryHandle fbHandle, String partition, String charsetName)
 Create FastBitStringReader.ReadHandle. More...
 
String[] getQualifiedStrings (final FileChannel fc, final FastBitStringReader.ReadHandle handle, String column) throws FastBitStringReaderException
 Thread-safe FastBit String[] getter. More...
 
String[] getQualifiedStrings (final FastBitStringReader.ReadHandle handle, String column) throws FastBitStringReaderException
 Thread-safe FastBit String[] getter. More...
 

Detailed Description

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.

Author
Andrey Kolchanov

Constructor & Destructor Documentation

gov.lbl.fastbit.FastBitStringReader.FastBitStringReader ( long  bufferSize)
inline

FastBitStringReader constructor.

Parameters
bufferSize

Member Function Documentation

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.

Parameters
fb
fbHandle
partition
charsetName
Returns
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.

Parameters
fc
handle
column
Returns
Exceptions
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.

Parameters
handle
column
Returns
Exceptions
FastBitStringReaderException

The documentation for this class was generated from the following file:

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive