Interface BlockfileStorage
- All Known Implementing Classes:
BlockfileLocalStorage
public interface BlockfileStorage
"name" may contain subpaths, but without a leading slash. Example: subdir/name
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteMulti(List<String> names) longlist()byte[]byte[]readEnding(String name, int length) default InputStreamreadInputStream(String name, long from, long to, io.datarouter.scanner.Threads threads, ByteLength chunkSize) readInputStream(String name, io.datarouter.scanner.Threads threads, ByteLength chunkSize) byte[]readPartial(String name, BlockfileLocation location) default BlockfileSegmentreadSegment(String name, BlockfileLocation location) voidvoidwrite(String name, InputStream inputStream, io.datarouter.scanner.Threads threads)
-
Method Details
-
list
List<BlockfileNameAndSize> list() -
length
-
read
-
readPartial
-
readSegment
-
readEnding
-
readInputStream
InputStream readInputStream(String name, io.datarouter.scanner.Threads threads, ByteLength chunkSize) -
readInputStream
default InputStream readInputStream(String name, long from, long to, io.datarouter.scanner.Threads threads, ByteLength chunkSize) -
write
-
write
-
deleteMulti
-