Package org.apache.druid.storage.remote
Class ChunkingStorageConnectorParameters<T>
- java.lang.Object
-
- org.apache.druid.storage.remote.ChunkingStorageConnectorParameters<T>
-
public class ChunkingStorageConnectorParameters<T> extends Object
POJO for storing the parameters required to support chunking of the downloads byChunkingStorageConnector
. The implementations of theChunkingStorageConnector
should essentially provide a way to build this object, which contains the information required to support chunking. Therefore, to a call ofStorageConnector.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 Modifier and Type Class Description static class
ChunkingStorageConnectorParameters.Builder<T>
Builder forChunkingStorageConnectorParameters
.
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCloudStoragePath()
long
getEnd()
int
getMaxRetry()
ObjectOpenFunction<T>
getObjectOpenFunction()
ChunkingStorageConnector.GetObjectFromRangeFunction<T>
getObjectSupplier()
com.google.common.base.Predicate<Throwable>
getRetryCondition()
long
getStart()
Supplier<File>
getTempDirSupplier()
int
hashCode()
-
-
-
Constructor Detail
-
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 Detail
-
getStart
public long getStart()
-
getEnd
public long getEnd()
-
getCloudStoragePath
public String getCloudStoragePath()
-
getObjectSupplier
public ChunkingStorageConnector.GetObjectFromRangeFunction<T> getObjectSupplier()
-
getObjectOpenFunction
public ObjectOpenFunction<T> getObjectOpenFunction()
-
getRetryCondition
public com.google.common.base.Predicate<Throwable> getRetryCondition()
-
getMaxRetry
public int getMaxRetry()
-
-