Package io.datarouter.storage.util
Class DirectoryKvFileStorage
java.lang.Object
io.datarouter.storage.util.DirectoryKvFileStorage
- All Implemented Interfaces:
io.datarouter.bytes.kvfile.KvFileStorage
public class DirectoryKvFileStorage
extends Object
implements io.datarouter.bytes.kvfile.KvFileStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidList<io.datarouter.bytes.kvfile.KvFileNameAndSize>list()byte[]readInputStream(String name) io.datarouter.scanner.Scanner<byte[]>readParallel(String name, long fromInclusive, long toExclusive, io.datarouter.scanner.Threads threads, io.datarouter.bytes.ByteLength chunkSize) voidvoidwriteParallel(String name, io.datarouter.scanner.Scanner<List<byte[]>> parts, io.datarouter.scanner.Threads threads)
-
Constructor Details
-
DirectoryKvFileStorage
-
-
Method Details
-
list
- Specified by:
listin interfaceio.datarouter.bytes.kvfile.KvFileStorage
-
write
- Specified by:
writein interfaceio.datarouter.bytes.kvfile.KvFileStorage
-
writeParallel
public void writeParallel(String name, io.datarouter.scanner.Scanner<List<byte[]>> parts, io.datarouter.scanner.Threads threads) - Specified by:
writeParallelin interfaceio.datarouter.bytes.kvfile.KvFileStorage
-
read
- Specified by:
readin interfaceio.datarouter.bytes.kvfile.KvFileStorage
-
readInputStream
- Specified by:
readInputStreamin interfaceio.datarouter.bytes.kvfile.KvFileStorage
-
readParallel
public io.datarouter.scanner.Scanner<byte[]> readParallel(String name, long fromInclusive, long toExclusive, io.datarouter.scanner.Threads threads, io.datarouter.bytes.ByteLength chunkSize) - Specified by:
readParallelin interfaceio.datarouter.bytes.kvfile.KvFileStorage
-
delete
- Specified by:
deletein interfaceio.datarouter.bytes.kvfile.KvFileStorage
-