Package org.apache.druid.storage.remote
Class ChunkingStorageConnectorParameters<T>
java.lang.Object
org.apache.druid.storage.remote.ChunkingStorageConnectorParameters<T>
POJO for storing the parameters required to support chunking of the downloads by
ChunkingStorageConnector.
The implementations of the ChunkingStorageConnector should essentially provide a way to build this object,
which contains the information required to support chunking.
Therefore, to a call of StorageConnector.readRange(String, long, long), the
implementations of the chunking storage connectors would fetch the required chunks using the information present in
this POJO.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChunkingStorageConnectorParameters(long start, long end, String cloudStoragePath, ChunkingStorageConnector.GetObjectFromRangeFunction<T> objectSupplier, ObjectOpenFunction<T> objectOpenFunction, com.google.common.base.Predicate<Throwable> retryCondition, int maxRetry, Supplier<File> tempDirSupplier) -
Method Summary
-
Constructor Details
-
ChunkingStorageConnectorParameters
public ChunkingStorageConnectorParameters(long start, long end, String cloudStoragePath, ChunkingStorageConnector.GetObjectFromRangeFunction<T> objectSupplier, ObjectOpenFunction<T> objectOpenFunction, com.google.common.base.Predicate<Throwable> retryCondition, int maxRetry, Supplier<File> tempDirSupplier)
-
-
Method Details
-
getStart
public long getStart() -
getEnd
public long getEnd() -
getCloudStoragePath
-
getObjectSupplier
-
getObjectOpenFunction
-
getRetryCondition
-
getMaxRetry
public int getMaxRetry() -
getTempDirSupplier
-
equals
-
hashCode
public int hashCode()
-