public class GenomicsDBQueryStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
private long |
mGenomicsDBReadStateHandle |
private String |
mLoaderJSONFile |
private String |
mQueryJSONFile |
| Constructor and Description |
|---|
GenomicsDBQueryStream(String loaderJSONFile,
String queryJSONFile)
Constructor
|
GenomicsDBQueryStream(String loaderJSONFile,
String queryJSONFile,
String chr,
int start,
int end)
Constructor
|
GenomicsDBQueryStream(String loaderJSONFile,
String queryJSONFile,
String chr,
int start,
int end,
int rank)
Constructor
|
GenomicsDBQueryStream(String loaderJSONFile,
String queryJSONFile,
String chr,
int start,
int end,
int rank,
long bufferCapacity,
long segmentSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
private long |
jniGenomicsDBClose(long handle) |
private long |
jniGenomicsDBGetNumBytesAvailable(long handle) |
private long |
jniGenomicsDBInit(String loaderJSONFile,
String queryJSONFile,
String chr,
int start,
int end,
int rank,
long bufferCapacity,
long segmentSize) |
private int |
jniGenomicsDBRead(long handle,
byte[] buffer,
int off,
int len) |
private byte |
jniGenomicsDBReadNextByte(long handle) |
private long |
jniGenomicsDBSkip(long handle,
long n) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer,
int off,
int len) |
long |
skip(long n) |
mark, read, resetprivate String mLoaderJSONFile
private String mQueryJSONFile
private long mGenomicsDBReadStateHandle
public GenomicsDBQueryStream(String loaderJSONFile, String queryJSONFile)
loaderJSONFile - GenomicsDB loader JSON configuration filequeryJSONFile - GenomicsDB query JSON configuration filepublic GenomicsDBQueryStream(String loaderJSONFile, String queryJSONFile, String chr, int start, int end)
loaderJSONFile - GenomicsDB loader JSON configuration filequeryJSONFile - GenomicsDB query JSON configuration filechr - contig namestart - start position (1-based)end - end position, inclusive (1-based)public GenomicsDBQueryStream(String loaderJSONFile, String queryJSONFile, String chr, int start, int end, int rank)
loaderJSONFile - GenomicsDB loader JSON configuration filequeryJSONFile - GenomicsDB query JSON configuration filechr - contig namestart - start position (1-based)end - end position, inclusive (1-based)rank - rank of this object if launched from within an MPI context (not used)public GenomicsDBQueryStream(String loaderJSONFile, String queryJSONFile, String chr, int start, int end, int rank, long bufferCapacity, long segmentSize)
loaderJSONFile - GenomicsDB loader JSON configuration filequeryJSONFile - GenomicsDB query JSON configuration filechr - contig namestart - start position (1-based)end - end position, inclusive (1-based)rank - rank of this object if launched from within an MPI context (not used)bufferCapacity - size of buffer in bytes to be used by the native layer
to store combined BCF2 recordssegmentSize - buffer to be used for querying TileDBprivate long jniGenomicsDBInit(String loaderJSONFile, String queryJSONFile, String chr, int start, int end, int rank, long bufferCapacity, long segmentSize)
private long jniGenomicsDBClose(long handle)
private long jniGenomicsDBGetNumBytesAvailable(long handle)
private byte jniGenomicsDBReadNextByte(long handle)
private int jniGenomicsDBRead(long handle,
byte[] buffer,
int off,
int len)
private long jniGenomicsDBSkip(long handle,
long n)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2017. All rights reserved.