public class HeapCompactor extends Object implements Compactor
Constructor and Description |
---|
HeapCompactor(Comparator<TableRow> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
compact(List<TableReader> inputs,
TableWriter output)
Compacts a list of inputs to the output.
|
public HeapCompactor(Comparator<TableRow> comparator)
comparator
- the comparator to compare rows' orderspublic void compact(List<TableReader> inputs, TableWriter output) throws IOException
Compactor
compact
in interface Compactor
inputs
- a list of table readersoutput
- a table writer, can be a TablesWriter
IOException
- when compaction failsCopyright © 2023. All Rights Reserved.