public class SnapshotReader
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SnapshotIterator<K,V> |
read(java.io.File snapshot)
Reads a snapshot file and passes the entries to the application.
|
public static <K,V> SnapshotIterator<K,V> read(java.io.File snapshot) throws java.io.IOException, java.lang.ClassNotFoundException
Prior to invoking read all necessary serializers
(either DataSerializer or PdxSerializer) and any
Instantiator should have been registered.
K - the key typeV - the value typesnapshot - the snapshot filejava.io.IOException - error reading the snapshot filejava.lang.ClassNotFoundException - unable deserialize entry