iterator interface chenged index and count members from int to tint 64
This commit is contained in:
+4
-4
@@ -16,8 +16,8 @@ type dataCursor struct {
|
||||
ctx kern.ExprContext
|
||||
initState bool // true if no item has produced yet (this replace di initial Next() call in the contructor)
|
||||
// cursorValid bool // true if resource is nil or if clean has not yet been called
|
||||
index int
|
||||
count int
|
||||
index int64
|
||||
count int64
|
||||
current any
|
||||
lastErr error
|
||||
resource any
|
||||
@@ -298,10 +298,10 @@ func (dc *dataCursor) Next() (current any, err error) { // must return io.EOF af
|
||||
// return
|
||||
// }
|
||||
|
||||
func (dc *dataCursor) Index() int {
|
||||
func (dc *dataCursor) Index() int64 {
|
||||
return dc.index - 1
|
||||
}
|
||||
|
||||
func (dc *dataCursor) Count() int {
|
||||
func (dc *dataCursor) Count() int64 {
|
||||
return dc.count
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user