public class StoreIteratorException extends RuntimeException
KVStore.storeIterator(Direction, int, Key, KeyRange, Depth,
Consistency, long, TimeUnit, StoreIteratorConfig)
when an exception
occurs. The underlying exception may be retrieved using the Throwable.getCause()
method. storeIterator results sets are generally retrieved in
batches using a specific key for each batch. If an exception occurs during a
retrieval, the key used to gather that batch of records is available to the
application with the getKey()
method. This might be useful, for
instance, to determine approximately how far an iteration had progressed
when the exception occurred.Modifier and Type | Method and Description |
---|---|
Key |
getKey()
Returns the key which was used to retrieve the current batch of records
in the iteration.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Key getKey()
Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.