public interface FileRange
Modifier and Type | Interface and Description |
---|---|
static class |
FileRange.FileRangeImpl
An implementation for
FileRange . |
Modifier and Type | Method and Description |
---|---|
static FileRange |
createFileRange(long offset,
int length)
Factory method to create a FileRange object.
|
CompletableFuture<byte[]> |
getData()
Get the future data for this range.
|
int |
getLength()
Get the length of the range.
|
long |
getOffset()
Get the starting offset of the range.
|
long getOffset()
int getLength()
CompletableFuture<byte[]> getData()
static FileRange createFileRange(long offset, int length)
offset
- starting offset of the range.length
- length of the range.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.