| 286 | virtual void Prev() { iter_->Prev(); } |
| 287 | |
| 288 | virtual Slice key() const { |
| 289 | assert(Valid()); |
| 290 | ParsedInternalKey key; |
| 291 | if (!ParseInternalKey(iter_->key(), &key)) { |
| 292 | status_ = Status::Corruption("malformed internal key"); |
| 293 | return Slice("corrupted key"); |
| 294 | } |
| 295 | return key.user_key; |
| 296 | } |
| 297 | |
| 298 | virtual Slice value() const { return iter_->value(); } |
| 299 | virtual Status status() const { return status_.ok() ? iter_->status() : status_; } |
no test coverage detected