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) |
public MaxRowsDocumentSource(DocumentSource delegate, int maxRows)
public Document next()
DocumentSource
next
in interface DocumentSource
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DocumentSource
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.