Class ChecksumBlobStoreFormat<T extends org.elasticsearch.common.xcontent.ToXContent>
org.elasticsearch.repositories.blobstore.ChecksumBlobStoreFormat<T>
public final class ChecksumBlobStoreFormat<T extends org.elasticsearch.common.xcontent.ToXContent>
extends
Snapshot metadata file format used in v2.0 and above
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ToXContent.Params
static int
-
Constructor Summary
ConstructorDescriptioncodec, blobNameFormat, ,org.elasticsearch.common.xcontent.XContentParser,> reader)
-
Method Summary
Modifier and TypeMethodDescriptionname)
repoName, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry, input)
repoName, BlobContainer blobContainer, name, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry)
Reads and parses the blob with given name, applying name translation using the {link #blobName} methodvoid
void
write(T obj, BlobContainer blobContainer, name, boolean compress)
Writes blob with resolving the blob name usingblobName(java.lang.String)
method.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
SNAPSHOT_ONLY_FORMAT_PARAMS
public static final org.elasticsearch.common.xcontent.ToXContent.Params SNAPSHOT_ONLY_FORMAT_PARAMS -
VERSION
public static final int VERSION- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChecksumBlobStoreFormat
public ChecksumBlobStoreFormat( codec, blobNameFormat, ,org.elasticsearch.common.xcontent.XContentParser,> reader)- Parameters:
codec
- codec nameblobNameFormat
- format of the blobname in formatreader
- prototype object that can deserialize T from XContent
-
-
Method Details
-
read
public repoName, BlobContainer blobContainer, name, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry) throwsReads and parses the blob with given name, applying name translation using the {link #blobName} method- Parameters:
blobContainer
- blob containername
- name to be translated into- Returns:
- parsed blob object
- Throws:
-
blobName
public blobName( name) -
deserialize
public repoName, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry, input) throws- Throws:
-
write
Writes blob with resolving the blob name usingblobName(java.lang.String)
method.The blob will optionally by compressed.
- Parameters:
obj
- object to be serializedblobContainer
- blob containername
- blob namecompress
- whether to use compression- Throws:
-
serialize
- Throws:
-