public class SnapshotReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SnapshotIterator<K,V> |
read(File snapshot)
Reads a snapshot file and passes the entries to the application.
|
public static <K,V> SnapshotIterator<K,V> read(File snapshot) throws IOException, 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 fileIOException - error reading the snapshot fileClassNotFoundException - unable deserialize entryCopyright © 1997-2017 Pivotal Software, Inc. All rights reserved.