FileRange@Private public class CombinedFileRange extends FileRangeImpl
This class is not part of the public API; it MAY BE used as a parameter to vector IO operations in FileSystem implementation code (and is)
| Constructor | Description |
|---|---|
CombinedFileRange(long offset,
long end,
FileRange original) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getDataSize() |
Get the total amount of data which is actually useful;
the difference between this and
FileRangeImpl.getLength() records
how much data which will be discarded. |
java.util.List<FileRange> |
getUnderlying() |
Get the list of ranges that were merged together to form this one.
|
boolean |
merge(long otherOffset,
long otherEnd,
FileRange other,
int minSeek,
int maxSize) |
Merge this input range into the current one, if it is compatible.
|
java.lang.String |
toString() |
getData, getLength, getOffset, getReference, setData, setLength, setOffsetpublic CombinedFileRange(long offset,
long end,
FileRange original)
public java.util.List<FileRange> getUnderlying()
public boolean merge(long otherOffset,
long otherEnd,
FileRange other,
int minSeek,
int maxSize)
otherOffset - the offset to consider mergingotherEnd - the end to consider mergingother - the underlying FileRange to add if we mergeminSeek - the minimum distance that we'll seek without merging the
ranges togethermaxSize - the maximum size that we'll merge into a single rangepublic java.lang.String toString()
toString in class FileRangeImplpublic long getDataSize()
FileRangeImpl.getLength() records
how much data which will be discarded.FileRangeImpl.getLength().Copyright © 2008–2025 Apache Software Foundation. All rights reserved.