public interface FileAppender<D>
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
add(D datum) |
default void |
addAll(java.lang.Iterable<D> values) |
default void |
addAll(java.util.Iterator<D> values) |
long |
length()
Returns the length of this file.
|
Metrics |
metrics()
Returns
Metrics for this file. |
default java.util.List<java.lang.Long> |
splitOffsets()
Returns a list of recommended split locations, if applicable, null otherwise.
|
void add(D datum)
default void addAll(java.util.Iterator<D> values)
default void addAll(java.lang.Iterable<D> values)
long length()
default java.util.List<java.lang.Long> splitOffsets()
When available, this information is used for planning scan tasks whose boundaries are determined by these offsets. The returned list must be sorted in ascending order. Only valid after the file is closed.