Gemfire JavaDocs
Package org.apache.geode.cache.snapshot
Class SnapshotReader
- java.lang.Object
-
- org.apache.geode.cache.snapshot.SnapshotReader
-
public class SnapshotReader extends java.lang.Object
Provides utilities for reading cache data.- Since:
- GemFire 7.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
SnapshotIterator<K,V>read(java.io.File snapshot)
Reads a snapshot file and passes the entries to the application.
-
-
-
Method Detail
-
read
public static <K,V> SnapshotIterator<K,V> read(java.io.File snapshot) throws java.io.IOException, java.lang.ClassNotFoundException
Reads a snapshot file and passes the entries to the application.Prior to invoking
read
all necessary serializers (eitherDataSerializer
orPdxSerializer
) and anyInstantiator
should have been registered.- Type Parameters:
K
- the key typeV
- the value type- Parameters:
snapshot
- the snapshot file- Returns:
- the snapshot iterator
- Throws:
java.io.IOException
- error reading the snapshot filejava.lang.ClassNotFoundException
- unable deserialize entry
-
-