public class DocumentsFastReader extends Object implements SequenceWithClose<DocumentData>
Constructor and Description |
---|
DocumentsFastReader(String location,
long length)
Constructor for the DocumentsFastReader object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the reader's data stream.
|
DocumentData |
next()
Return the next element.
|
void |
rewind() |
public DocumentsFastReader(String location, long length) throws IOException
location
- the directory where this object
will readlength
- IOException
- if an I/O error occurspublic void rewind() throws IOException
IOException
public void close()
close
in interface AutoCloseable
close
in interface SequenceWithClose<DocumentData>
public DocumentData next()
next
in interface Sequence<DocumentData>
Copyright © 2016 Egothor. All Rights Reserved.