Package google.registry.backup
Class BackupUtils
- java.lang.Object
-
- google.registry.backup.BackupUtils
-
public class BackupUtils extends java.lang.Object
Utilities for working with backups.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackupUtils.GcsMetadataKeys
Keys for user metadata fields on commit log files in GCS.
-
Constructor Summary
Constructors Constructor Description BackupUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Iterator<ImmutableObject>
createDeserializingIterator(java.io.InputStream input, boolean withAppIdOverride)
Return an iterator ofImmutableObject
instances deserialized from the given stream.static com.google.common.collect.ImmutableList<ImmutableObject>
deserializeEntities(byte[] bytes)
-
-
-
Method Detail
-
createDeserializingIterator
public static java.util.Iterator<ImmutableObject> createDeserializingIterator(java.io.InputStream input, boolean withAppIdOverride)
Return an iterator ofImmutableObject
instances deserialized from the given stream.This parses out delimited protocol buffers for raw Datastore entities and then Ofy-loads those as
ImmutableObject
.The iterator reads from the stream on demand, and as such will fail if the stream is closed.
-
deserializeEntities
public static com.google.common.collect.ImmutableList<ImmutableObject> deserializeEntities(byte[] bytes)
-
-