public abstract class AbstractSpectrumHeaderReader extends MzDbEntityCacheContainer
Modifier and Type | Field and Description |
---|---|
protected static int |
TIME_INDEX_WIDTH
The time index width.
|
Constructor and Description |
---|
AbstractSpectrumHeaderReader(AbstractMzDbReader mzDbReader,
AbstractDataEncodingReader dataEncodingReader) |
Modifier and Type | Method and Description |
---|---|
Map<Long,SpectrumHeader> |
getMs1SpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the MS1 spectrum header by id.
|
protected SpectrumHeader[] |
getMs1SpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the MS1 spectrum headers.
|
Map<Long,SpectrumHeader> |
getMs2SpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the MS2 spectrum header by id.
|
protected SpectrumHeader[] |
getMs2SpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the MS2 spectrum headers.
|
Map<Long,SpectrumHeader> |
getMs3SpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the MS2 spectrum header by id.
|
protected SpectrumHeader[] |
getMs3SpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the MS2 spectrum headers.
|
SpectrumHeader |
getSpectrumHeader(long id,
com.almworks.sqlite4java.SQLiteConnection connection)
/** Gets the spectrum header.
|
Map<Long,SpectrumHeader> |
getSpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the spectrum headers by id.
|
protected SpectrumHeader |
getSpectrumHeaderForTime(float time,
int msLevel,
com.almworks.sqlite4java.SQLiteConnection connection)
Gets the spectrum header for time.
|
protected SpectrumHeader[] |
getSpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the spectrum headers.
|
protected long[] |
getSpectrumIdsForTimeRange(float minRT,
float maxRT,
int msLevel,
com.almworks.sqlite4java.SQLiteConnection connection)
Gets the spectrum ids for time range.
|
protected Map<Long,Float> |
getSpectrumTimeById(com.almworks.sqlite4java.SQLiteConnection connection)
Gets the spectrum time by id.
|
getEntityCache, getMzDbReader
protected static final int TIME_INDEX_WIDTH
public AbstractSpectrumHeaderReader(AbstractMzDbReader mzDbReader, AbstractDataEncodingReader dataEncodingReader) throws com.almworks.sqlite4java.SQLiteException
mzDbReader
- com.almworks.sqlite4java.SQLiteException
protected SpectrumHeader[] getSpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionpublic Map<Long,SpectrumHeader> getSpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionprotected SpectrumHeader[] getMs1SpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionpublic Map<Long,SpectrumHeader> getMs1SpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionprotected SpectrumHeader[] getMs2SpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionpublic Map<Long,SpectrumHeader> getMs2SpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionprotected SpectrumHeader[] getMs3SpectrumHeaders(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionpublic Map<Long,SpectrumHeader> getMs3SpectrumHeaderById(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionpublic SpectrumHeader getSpectrumHeader(long id, com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
id
- the idconnection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionprotected Map<Long,Float> getSpectrumTimeById(com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
connection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQLite exceptionprotected SpectrumHeader getSpectrumHeaderForTime(float time, int msLevel, com.almworks.sqlite4java.SQLiteConnection connection) throws Exception
time
- the timemsLevel
- the ms levelconnection
- the connectionException
- the exceptionprotected long[] getSpectrumIdsForTimeRange(float minRT, float maxRT, int msLevel, com.almworks.sqlite4java.SQLiteConnection connection) throws com.almworks.sqlite4java.SQLiteException
minRT
- the min rtmaxRT
- the max rtmsLevel
- the ms levelconnection
- the connectioncom.almworks.sqlite4java.SQLiteException
- the SQ lite exceptionCopyright © 2019. All rights reserved.