public class LegacyBlobStoreFormat<T extends ToXContent> extends BlobStoreFormat<T>
blobNameFormat, parseFieldMatcher, reader, SNAPSHOT_ONLY_FORMAT_PARAMS
Constructor and Description |
---|
LegacyBlobStoreFormat(java.lang.String blobNameFormat,
FromXContentBuilder<T> reader,
ParseFieldMatcher parseFieldMatcher) |
Modifier and Type | Method and Description |
---|---|
T |
readBlob(BlobContainer blobContainer,
java.lang.String blobName)
Reads and parses the blob with given name.
|
public LegacyBlobStoreFormat(java.lang.String blobNameFormat, FromXContentBuilder<T> reader, ParseFieldMatcher parseFieldMatcher)
blobNameFormat
- format of the blobname in String.format(java.lang.String, java.lang.Object...)
formatreader
- the prototype object that can deserialize objects with type Tpublic T readBlob(BlobContainer blobContainer, java.lang.String blobName) throws java.io.IOException
readBlob
in class BlobStoreFormat<T extends ToXContent>
blobContainer
- blob containerblobName
- blob namejava.io.IOException