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

    Fields
    Modifier and Type
    Field
    Description
    static org.elasticsearch.common.xcontent.ToXContent.Params
     
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     codec,  blobNameFormat, ,​org.elasticsearch.common.xcontent.XContentParser,​> reader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     name)
     
     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} method
    void
    serialize​(T obj,  blobName, boolean compress,  outputStream)
     
    void
    write​(T obj, BlobContainer blobContainer,  name, boolean compress)
    Writes blob with resolving the blob name using blobName(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 name
      blobNameFormat - format of the blobname in format
      reader - prototype object that can deserialize T from XContent
  • Method Details

    • read

      public  repoName, BlobContainer blobContainer,  name, org.elasticsearch.common.xcontent.NamedXContentRegistry namedXContentRegistry) throws
      Reads and parses the blob with given name, applying name translation using the {link #blobName} method
      Parameters:
      blobContainer - blob container
      name - 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

      public void write(T obj, BlobContainer blobContainer,  name, boolean compress) throws
      Writes blob with resolving the blob name using blobName(java.lang.String) method.

      The blob will optionally by compressed.

      Parameters:
      obj - object to be serialized
      blobContainer - blob container
      name - blob name
      compress - whether to use compression
      Throws:
    • serialize

      public void serialize(T obj,  blobName, boolean compress,  outputStream) throws
      Throws: