public class LegacyBlobStoreFormat<T extends ToXContent> extends BlobStoreFormat<T>
blobNameFormat, namedXContentRegistry, reader, SNAPSHOT_ONLY_FORMAT_PARAMS
Constructor and Description |
---|
LegacyBlobStoreFormat(java.lang.String blobNameFormat,
CheckedFunction<XContentParser,T,java.io.IOException> reader,
NamedXContentRegistry namedXContentRegistry) |
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, CheckedFunction<XContentParser,T,java.io.IOException> reader, NamedXContentRegistry namedXContentRegistry)
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