public class HadoopSpectraReader<A extends PeakAnnotation,S extends Spectrum<A>> extends Object implements IterativeReader<S>
EMPTY_READER| Constructor and Description |
|---|
HadoopSpectraReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path,
AbstractPeakListValue<S> value) |
HadoopSpectraReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path,
SpectrumKey key,
AbstractPeakListValue<S> value) |
HadoopSpectraReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
AbstractPeakListValue<S> value) |
HadoopSpectraReader(String path,
String name,
AbstractPeakListValue<S> value) |
HadoopSpectraReader(String path,
String name,
SpectrumKey key,
AbstractPeakListValue<S> value) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader and releases any system resources associated with
it.
|
static org.apache.hadoop.fs.LocalFileSystem |
getLocal(org.apache.hadoop.conf.Configuration conf) |
boolean |
hasNext()
Returns
true if the reader has more elements. |
static HadoopSpectraReader<PeakAnnotation,MsnSpectrum> |
msnReader(File file) |
S |
next()
Returns the next element in the reader.
|
public HadoopSpectraReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path,
AbstractPeakListValue<S> value)
throws IOException
IOExceptionpublic HadoopSpectraReader(String path, String name, AbstractPeakListValue<S> value) throws IOException
IOExceptionpublic HadoopSpectraReader(String path, String name, SpectrumKey key, AbstractPeakListValue<S> value) throws IOException
IOExceptionpublic HadoopSpectraReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
AbstractPeakListValue<S> value)
throws IOException
IOExceptionpublic HadoopSpectraReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path,
SpectrumKey key,
AbstractPeakListValue<S> value)
throws IOException
IOExceptionpublic static org.apache.hadoop.fs.LocalFileSystem getLocal(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic void close()
throws IOException
IterativeReaderclose in interface IterativeReader<S extends Spectrum<A>>IOException - If an I/O error occurspublic boolean hasNext()
IterativeReadertrue if the reader has more elements.
(In other words, returns true if IterativeReader.next() would
return an element rather than throwing an exception.)hasNext in interface IterativeReader<S extends Spectrum<A>>true if the reader has more elementspublic S next() throws IOException
IterativeReadernext in interface IterativeReader<S extends Spectrum<A>>IOException - if there is an io exceptionpublic static HadoopSpectraReader<PeakAnnotation,MsnSpectrum> msnReader(File file) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.