Package io.datarouter.storage.file
Class Directory
java.lang.Object
io.datarouter.storage.file.Directory
- All Implemented Interfaces:
NodeOps<PathbeanKey,,Pathbean> BlobStorage,BlobStorageReader,BlobStorageWriter
Lightweight directory representation that is not tracked by the framework. Duplicates can be created at will for
convenience in the application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.BlobStorage
BlobStorage.BlobStorageNode, BlobStorage.PhysicalBlobStorageNode -
Field Summary
Fields inherited from interface io.datarouter.storage.node.op.raw.BlobStorage
FILE_PATH_DELIMITER -
Constructor Summary
ConstructorsConstructorDescriptionDirectory(BlobStorage parent) Directory(BlobStorage parent, Subpath subpathInParent) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(PathbeanKey key, Config config) voidDelete all descendants and the subpath directorybooleanexists(PathbeanKey key, Config config) length(PathbeanKey key, Config config) byte[]read(PathbeanKey key, long offset, int length, Config config) byte[]read(PathbeanKey key, Config config) Map<PathbeanKey,byte[]> read(List<PathbeanKey> keys, Config config) readInputStream(PathbeanKey key, Config config) io.datarouter.scanner.Scanner<List<PathbeanKey>>scanKeysPaged(Subpath subpath, Config config) subdirectory(Subpath subpathInParent) subdirectoryBuilder(Subpath subpathInParent) toString()voidvoidwrite(PathbeanKey key, byte[] value, Config config) voidwrite(PathbeanKey key, InputStream inputStream, Config config) voidwriteParallel(PathbeanKey key, io.datarouter.scanner.Scanner<List<byte[]>> parts, io.datarouter.scanner.Threads threads, Config config) voidwriteParallel(PathbeanKey key, InputStream inputStream, io.datarouter.scanner.Threads threads, io.datarouter.bytes.ByteLength minPartSize, Config config) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.datarouter.storage.node.op.raw.read.BlobStorageReader
exists, length, read, read, read, readInputStream, scan, scanChunks, scanChunks, scanDirectories, scanFiles, scanKeys, scanKeys, scanKeysPaged, scanPagedMethods inherited from interface io.datarouter.storage.node.op.raw.write.BlobStorageWriter
delete, deleteAll, write, write, write, write, writeParallel, writeParallel
-
Constructor Details
-
Directory
-
Directory
-
-
Method Details
-
subdirectory
-
subdirectoryBuilder
-
write
- Specified by:
writein interfaceBlobStorageWriter
-
write
- Specified by:
writein interfaceBlobStorageWriter
-
writeParallel
public void writeParallel(PathbeanKey key, InputStream inputStream, io.datarouter.scanner.Threads threads, io.datarouter.bytes.ByteLength minPartSize, Config config) - Specified by:
writeParallelin interfaceBlobStorageWriter
-
writeParallel
public void writeParallel(PathbeanKey key, io.datarouter.scanner.Scanner<List<byte[]>> parts, io.datarouter.scanner.Threads threads, Config config) - Specified by:
writeParallelin interfaceBlobStorageWriter
-
delete
- Specified by:
deletein interfaceBlobStorageWriter
-
deleteAll
Description copied from interface:BlobStorageWriterDelete all descendants and the subpath directory- Specified by:
deleteAllin interfaceBlobStorageWriter
-
getBucket
- Specified by:
getBucketin interfaceBlobStorageReader
-
getRootPath
- Specified by:
getRootPathin interfaceBlobStorageReader
-
exists
- Specified by:
existsin interfaceBlobStorageReader
-
length
- Specified by:
lengthin interfaceBlobStorageReader
-
read
- Specified by:
readin interfaceBlobStorageReader
-
read
- Specified by:
readin interfaceBlobStorageReader
-
read
- Specified by:
readin interfaceBlobStorageReader
-
readInputStream
- Specified by:
readInputStreamin interfaceBlobStorageReader
-
scanKeysPaged
public io.datarouter.scanner.Scanner<List<PathbeanKey>> scanKeysPaged(Subpath subpath, Config config) - Specified by:
scanKeysPagedin interfaceBlobStorageReader
-
scanPaged
- Specified by:
scanPagedin interfaceBlobStorageReader
-
toString
-
vacuum
- Specified by:
vacuumin interfaceBlobStorageWriter
-