V
- the type of contained valuespublic interface Collectable<V> extends Serializable
Collectable
specifies the number of entries within
each row, i.e. the size of the returned iterables from
obtainValues()
and obtainHeaders()
match.Modifier and Type | Method and Description |
---|---|
default void |
clear()
Clears the data contained in this collectable, i.e.
|
default OutputWriter |
createWriter(Path outputPath)
Returns fitting
OutputWriter for this collectable. |
Iterable<String> |
obtainHeaders()
Obtains headers.
|
Iterable<? extends V> |
obtainValues()
Obtains values.
|
default Map<String,V> |
toMap() |
Iterable<String> obtainHeaders()
obtainValues()
.Iterable<? extends V> obtainValues()
obtainHeaders()
. Can be written
as a row into a CSV file.default void clear()
UnsupportedOperationException
.UnsupportedOperationException
- if unsupporteddefault OutputWriter createWriter(Path outputPath)
OutputWriter
for this collectable.outputPath
- the output pathOutputWriter
for given collector