Class RemoteCustomMetadata
java.lang.Object
org.opensearch.common.remote.RemoteWriteableBlobEntity<Metadata.Custom>
org.opensearch.common.remote.AbstractClusterMetadataWriteableBlobEntity<Metadata.Custom>
org.opensearch.gateway.remote.model.RemoteCustomMetadata
- All Implemented Interfaces:
RemoteWriteableEntity<Metadata.Custom>
public class RemoteCustomMetadata
extends AbstractClusterMetadataWriteableBlobEntity<Metadata.Custom>
Wrapper class for uploading/downloading
Metadata.Custom
to/from remote blob store-
Field Summary
FieldsFields inherited from class org.opensearch.common.remote.AbstractClusterMetadataWriteableBlobEntity
namedXContentRegistry
Fields inherited from class org.opensearch.common.remote.RemoteWriteableBlobEntity
blobFileName, blobName
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteCustomMetadata
(String blobName, String customType, String clusterUUID, org.opensearch.core.compress.Compressor compressor, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.opensearch.Version version) RemoteCustomMetadata
(Metadata.Custom custom, String customType, long metadataVersion, String clusterUUID, org.opensearch.core.compress.Compressor compressor, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry) -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(InputStream inputStream) getType()
static Metadata.Custom
readFrom
(org.opensearch.core.common.io.stream.StreamInput streamInput, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, String customType) Methods inherited from class org.opensearch.common.remote.AbstractClusterMetadataWriteableBlobEntity
getNamedXContentRegistry
Methods inherited from class org.opensearch.common.remote.RemoteWriteableBlobEntity
clusterUUID, getBlobFileName, getBlobPathTokens, getCompressor, getFullBlobName, getPrefixedPath, setFullBlobName
-
Field Details
-
CUSTOM_METADATA
- See Also:
-
CUSTOM_DELIMITER
- See Also:
-
customBlobStoreFormat
-
-
Constructor Details
-
RemoteCustomMetadata
public RemoteCustomMetadata(Metadata.Custom custom, String customType, long metadataVersion, String clusterUUID, org.opensearch.core.compress.Compressor compressor, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry) -
RemoteCustomMetadata
-
-
Method Details
-
getBlobPathParameters
- Specified by:
getBlobPathParameters
in classRemoteWriteableBlobEntity<Metadata.Custom>
-
getType
- Specified by:
getType
in classRemoteWriteableBlobEntity<Metadata.Custom>
-
generateBlobFileName
- Specified by:
generateBlobFileName
in classRemoteWriteableBlobEntity<Metadata.Custom>
-
serialize
- Returns:
- An InputStream created by serializing the entity T
- Throws:
IOException
- Exception encountered while serialization
-
deserialize
- Parameters:
inputStream
- The InputStream which is used to read the serialized entity- Returns:
- The entity T after deserialization
- Throws:
IOException
- Exception encountered while deserialization
-
getUploadedMetadata
- Specified by:
getUploadedMetadata
in classAbstractClusterMetadataWriteableBlobEntity<Metadata.Custom>
-
readFrom
public static Metadata.Custom readFrom(org.opensearch.core.common.io.stream.StreamInput streamInput, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, String customType) throws IOException - Throws:
IOException
-