public class LegacyBlobStoreFormat<T extends ToXContent> extends BlobStoreFormat<T>
blobNameFormat, parseFieldMatcher, reader, SNAPSHOT_ONLY_FORMAT_PARAMS
Constructor and Description |
---|
LegacyBlobStoreFormat(String blobNameFormat,
FromXContentBuilder<T> reader,
ParseFieldMatcher parseFieldMatcher) |
Modifier and Type | Method and Description |
---|---|
T |
readBlob(BlobContainer blobContainer,
String blobName)
Reads and parses the blob with given name.
|
public LegacyBlobStoreFormat(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, String blobName) throws IOException
readBlob
in class BlobStoreFormat<T extends ToXContent>
blobContainer
- blob containerblobName
- blob nameIOException
Copyright © 2009–2017. All rights reserved.