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

Method Close

client/rpcdataset.go:160–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (s *IoTDBRpcDataSet) Close() (err error) {
161 if s.isClosed {
162 return nil
163 }
164 closeRequest := &rpc.TSCloseOperationReq{
165 SessionId: s.sessionId,
166 StatementId: &s.statementId,
167 QueryId: &s.queryId,
168 }
169
170 var status *common.TSStatus
171 status, err = s.client.CloseOperation(context.Background(), closeRequest)
172 if err == nil {
173 err = VerifySuccess(status)
174 }
175 s.client = nil
176 s.isClosed = true
177 return err
178}
179
180func (s *IoTDBRpcDataSet) Next() (result bool, err error) {
181 if s.hasCachedBlock() {

Callers 2

NextMethod · 0.95
fetchResultsMethod · 0.95

Calls 2

VerifySuccessFunction · 0.85
CloseOperationMethod · 0.65

Tested by

no test coverage detected