Item returns pointer to the current key-value pair. This item is only valid until it.Next() gets called.
()
| 510 | // Item returns pointer to the current key-value pair. |
| 511 | // This item is only valid until it.Next() gets called. |
| 512 | func (it *Iterator) Item() *Item { |
| 513 | tx := it.txn |
| 514 | tx.addReadKey(it.item.Key()) |
| 515 | return it.item |
| 516 | } |
| 517 | |
| 518 | // Valid returns false when iteration is done. |
| 519 | func (it *Iterator) Valid() bool { |