MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / Next

Method Next

client/rpcdataset.go:180–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178}
179
180func (s *IoTDBRpcDataSet) Next() (result bool, err error) {
181 if s.hasCachedBlock() {
182 s.lastReadWasNull = false
183 err = s.constructOneRow()
184 return true, err
185 }
186 if s.hasCachedByteBuffer() {
187 if err = s.constructOneTsBlock(); err != nil {
188 return false, err
189 }
190 err = s.constructOneRow()
191 return true, err
192 }
193
194 if s.moreData {
195 hasResultSet, err := s.fetchResults()
196 if err != nil {
197 return false, err
198 }
199 if hasResultSet && s.hasCachedByteBuffer() {
200 if err = s.constructOneTsBlock(); err != nil {
201 return false, err
202 }
203 err = s.constructOneRow()
204 return true, err
205 }
206 }
207 err = s.Close()
208 if err != nil {
209 return false, err
210 }
211 return false, nil
212}
213
214func (s *IoTDBRpcDataSet) fetchResults() (bool, error) {
215 if s.isClosed {

Callers 15

printDevice1Function · 0.45
printDataSet0Function · 0.45
printDataSet1Function · 0.45
printDataSet2Function · 0.45
printDevice1Function · 0.45
printDataSet0Function · 0.45
printDataSet1Function · 0.45
printDataSet2Function · 0.45
showTablesFunction · 0.45
queryFunction · 0.45
Test_CreateTimeseriesMethod · 0.45

Calls 6

hasCachedBlockMethod · 0.95
constructOneRowMethod · 0.95
hasCachedByteBufferMethod · 0.95
constructOneTsBlockMethod · 0.95
fetchResultsMethod · 0.95
CloseMethod · 0.95