public class ProcessingSource extends Object implements Closeable
seeker instances, each operating over one chunk, not transitioning itself
into the next.| Constructor and Description |
|---|
ProcessingSource(CharReadable reader,
int chunkSize,
int maxNumberOfBufferedChunks) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Source.Chunk |
nextChunk()
Must be called by a single thread, the same thread every time.
|
long |
position() |
public ProcessingSource(CharReadable reader, int chunkSize, int maxNumberOfBufferedChunks)
public Source.Chunk nextChunk() throws IOException
Source.Chunk of data, ending with a new-line or not for the last chunk.IOException - on reading error.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long position()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.