Interface BlobStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
- All Superinterfaces:
NodeOps<PK,D>
- All Known Subinterfaces:
BlobStorage<PK,D>,BlobStorage.BlobStorageNode<PK,D,F>,BlobStorage.PhysicalBlobStorageNode<PK,D,F>,BlobStorageWriter<PK,D>
- All Known Implementing Classes:
Directory
public interface BlobStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>> extends NodeOps<PK,D>
Methods for reading from an blob store such as the filesystem or S3.
-
Method Summary
Modifier and Type Method Description booleanexists(PathbeanKey key)StringgetBucket()SubpathgetRootPath()Optional<Long>length(PathbeanKey key)byte[]read(PathbeanKey key)byte[]read(PathbeanKey key, long offset, int length)default io.datarouter.scanner.Scanner<Pathbean>scan(Subpath subpath)default io.datarouter.scanner.Scanner<byte[]>scanChunks(PathbeanKey key, ExecutorService exec, int numThreads, int chunkSize)default io.datarouter.scanner.Scanner<PathbeanKey>scanKeys(Subpath subpath)io.datarouter.scanner.Scanner<List<PathbeanKey>>scanKeysPaged(Subpath subpath)io.datarouter.scanner.Scanner<List<Pathbean>>scanPaged(Subpath subpath)
-
Method Details
-
getBucket
String getBucket() -
getRootPath
Subpath getRootPath() -
exists
-
length
-
read
-
read
-
scanKeysPaged
-
scanPaged
-
scanKeys
-
scan
-
scanChunks
default io.datarouter.scanner.Scanner<byte[]> scanChunks(PathbeanKey key, ExecutorService exec, int numThreads, int chunkSize)
-