Class MarlinDocumentStream

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Iterable<org.ojai.Document>, org.ojai.DocumentStream, org.ojai.store.QueryResult

    public class MarlinDocumentStream
    extends java.lang.Object
    implements org.ojai.store.QueryResult
    • Constructor Summary

      Constructors 
      Constructor Description
      MarlinDocumentStream​(java.util.List<org.ojai.DocumentStream> dbDocumentStreams, java.util.List<org.ojai.FieldPath> ps, int parallelScans, long maxMemory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.Iterable<org.ojai.DocumentReader> documentReaders()  
      org.ojai.Document getQueryPlan()  
      java.util.Iterator<org.ojai.Document> iterator()  
      void streamTo​(org.ojai.DocumentListener l)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • MarlinDocumentStream

        public MarlinDocumentStream​(java.util.List<org.ojai.DocumentStream> dbDocumentStreams,
                                    java.util.List<org.ojai.FieldPath> ps,
                                    int parallelScans,
                                    long maxMemory)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.ojai.DocumentStream
      • streamTo

        public void streamTo​(org.ojai.DocumentListener l)
        Specified by:
        streamTo in interface org.ojai.DocumentStream
      • iterator

        public java.util.Iterator<org.ojai.Document> iterator()
        Specified by:
        iterator in interface org.ojai.DocumentStream
        Specified by:
        iterator in interface java.lang.Iterable<org.ojai.Document>
      • documentReaders

        public java.lang.Iterable<org.ojai.DocumentReader> documentReaders()
        Specified by:
        documentReaders in interface org.ojai.DocumentStream
      • getQueryPlan

        public org.ojai.Document getQueryPlan()
        Specified by:
        getQueryPlan in interface org.ojai.store.QueryResult