public class SchemeDelegatingStorage extends BaseDelegatingStorage
URI.getScheme().
So that, for example:
s3://my-bucket/folder/file.txt will read file from S3 StorageService
file:///users/folder/file.txt will read file from local filesystem| Constructor and Description |
|---|
SchemeDelegatingStorage(Map<String,StorageService> storageByProtocol)
Registers declared storage providers
|
| Modifier and Type | Method and Description |
|---|---|
protected StorageService |
service(AbsoluteLocation location) |
list, objectExists, read, remove, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushChunkSizepublic SchemeDelegatingStorage(Map<String,StorageService> storageByProtocol)
storageByProtocol - Storage operation handler by protocol.protected StorageService service(AbsoluteLocation location)
service in class BaseDelegatingStorageCopyright © 2020. All rights reserved.