Beispiel #1
0
    def _find_by_java_document_stream(self, document_stream):
        iterator = document_stream.iterator()

        while iterator.hasNext():
            yield Document(java_to_python_cast(iterator.next()))
        document_stream.close()
Beispiel #2
0
 def python_document_from_java(java_object):
     return Document(java_to_python_cast(java_object))
Beispiel #3
0
 def python_document_from_java(java_object):
     return Document(java_to_python_cast(java_object))
Beispiel #4
0
    def _find_by_java_document_stream(self, document_stream):
        iterator = document_stream.iterator()

        while iterator.hasNext():
            yield Document(java_to_python_cast(iterator.next()))
        document_stream.close()