NebulaGraph Python Client 5.3.0
Loading...
Searching...
No Matches
ResultTable Class Reference

Public Member Functions

 __init__ (self, Any table)
 
Row next (self)
 
 __iter__ (self)
 
Row __next__ (self)
 

Public Attributes

 result_table
 
 byte_order
 
 parser
 
 num_batches
 
 column_names
 
 total_num_records
 

Protected Member Functions

Row _get_row_by_index (self, Batch batch, int index)
 

Protected Attributes

 _current_batch_row_index
 
 _current_batch
 

Detailed Description

Stateful iterator over batched result data, matching Java's ResultTable.next() semantics.

Rows are decoded on-demand as next() is called, rather than all at once.

Definition at line 40 of file result_set.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
Any  table 
)

Definition at line 46 of file result_set.py.

Member Function Documentation

◆ __iter__()

__iter__ (   self)

Definition at line 132 of file result_set.py.

◆ __next__()

Row __next__ (   self)

Definition at line 135 of file result_set.py.

◆ _get_row_by_index()

Row _get_row_by_index (   self,
Batch  batch,
int  index 
)
protected
Decode one row from the given batch at the specified index.

Definition at line 85 of file result_set.py.

+ Here is the caller graph for this function:

◆ next()

Row next (   self)
Return the next decoded row, advancing internal state.

Mirrors Java ResultTable.next():
- Skip empty or exhausted batches automatically.
- Raises StopIteration when all rows have been consumed.

Definition at line 100 of file result_set.py.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _current_batch

_current_batch
protected

Definition at line 123 of file result_set.py.

◆ _current_batch_row_index

_current_batch_row_index
protected

Definition at line 122 of file result_set.py.

◆ byte_order

byte_order

Definition at line 56 of file result_set.py.

◆ column_names

column_names

Definition at line 65 of file result_set.py.

◆ num_batches

num_batches

Definition at line 61 of file result_set.py.

◆ parser

parser

Definition at line 60 of file result_set.py.

◆ result_table

result_table

Definition at line 50 of file result_set.py.

◆ total_num_records

total_num_records

Definition at line 76 of file result_set.py.


The documentation for this class was generated from the following file: