public abstract class AOffset extends Object implements Serializable
Constructor and Description |
---|
AOffset() |
Modifier and Type | Method and Description |
---|---|
void |
cacheIterator(AIterator it,
int row)
Cache a iterator in use, note that there is no check for if the iterator is correctly positioned at the given row
|
abstract long |
getExactSizeOnDisk()
Remember to include the ordinal of the type of offset list.
|
abstract long |
getInMemorySize()
Get the in memory size of the Offset object
|
abstract AIterator |
getIterator()
Get an iterator of the offsets.
|
AIterator |
getIterator(int row)
Get an iterator that is pointing at a specific offset.
|
abstract int |
getSize()
Get the number of contained elements, This method iterate the entire offset list, so it is not constant lookup.
|
String |
toString() |
abstract void |
write(DataOutput out)
Write the offsets to disk.
|
public abstract AIterator getIterator()
public AIterator getIterator(int row)
row
- The row requested.public void cacheIterator(AIterator it, int row)
it
- The Iterator to cacherow
- The row index to cache the iterator as.public abstract void write(DataOutput out) throws IOException
out
- The output to write toIOException
- Exception that happens if the IO fails to write.public abstract long getInMemorySize()
public abstract long getExactSizeOnDisk()
public abstract int getSize()
Copyright © 2021 The Apache Software Foundation. All rights reserved.