public class MaxRowsDocumentSource extends Object implements DocumentSource
DocumentSource that has a max rows condition on it, that will make
it stop serving documents after a certain limit.| Constructor and Description |
|---|
MaxRowsDocumentSource(DocumentSource delegate,
int maxRows) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Document |
next()
Gets the next sample from the source, or returns null if there are no
more documents available.
|
public MaxRowsDocumentSource(DocumentSource delegate, int maxRows)
public Document next()
DocumentSourcenext in interface DocumentSourcepublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface DocumentSourceCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.