Package org.opensearch.common.remote
Class RemoteWriteableBlobEntity<T>
java.lang.Object
org.opensearch.common.remote.RemoteWriteableBlobEntity<T>
- Type Parameters:
T
- the entity to be written
- All Implemented Interfaces:
RemoteWriteableEntity<T>
- Direct Known Subclasses:
AbstractClusterMetadataWriteableBlobEntity
public abstract class RemoteWriteableBlobEntity<T>
extends Object
implements RemoteWriteableEntity<T>
The abstract class which represents a
RemoteWriteableEntity
that can be written to a store-
Field Summary
-
Constructor Summary
ConstructorDescriptionRemoteWriteableBlobEntity
(String clusterUUID, org.opensearch.core.compress.Compressor compressor) -
Method Summary
Modifier and TypeMethodDescriptionabstract String
abstract BlobPathParameters
String[]
protected org.opensearch.core.compress.Compressor
getPrefixedPath
(BlobPath blobPath) Generate the blob path for the remote entity by adding a custom prefix.abstract String
getType()
void
setFullBlobName
(BlobPath blobPath) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.common.remote.RemoteWriteableEntity
deserialize, serialize
-
Field Details
-
blobFileName
-
blobName
-
-
Constructor Details
-
RemoteWriteableBlobEntity
public RemoteWriteableBlobEntity(String clusterUUID, org.opensearch.core.compress.Compressor compressor)
-
-
Method Details
-
getBlobPathParameters
-
getType
-
getFullBlobName
-
getBlobFileName
-
getBlobPathTokens
-
generateBlobFileName
-
getPrefixedPath
Generate the blob path for the remote entity by adding a custom prefix. This custom prefix may be generated by any of the strategies defined inRemoteStoreEnums
The default implementation returns the same path as passed in the argument.- Parameters:
blobPath
- The remote path on which the remote entity is to be uploaded- Returns:
- The modified remote path after adding a custom prefix at which the remote entity will be uploaded.
-
clusterUUID
-
setFullBlobName
-
getCompressor
protected org.opensearch.core.compress.Compressor getCompressor()
-