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 theChunkingStorageConnectorshould 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 classChunkingStorageConnectorParameters.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 booleanequals(Object o)StringgetCloudStoragePath()longgetEnd()intgetMaxRetry()ObjectOpenFunction<T>getObjectOpenFunction()ChunkingStorageConnector.GetObjectFromRangeFunction<T>getObjectSupplier()com.google.common.base.Predicate<Throwable>getRetryCondition()longgetStart()Supplier<File>getTempDirSupplier()inthashCode()
-
-
-
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()
-
-