public class RowRunner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static RowRunner |
DEFAULT
General purpose instance; will be parallel for suitable environments.
|
static SplitPolicy |
DFLT_POLICY
Default split policy.
|
static RowRunner |
PARTEST
Testing instance; force parallel processing even for small tables.
|
static RowRunner |
SEQUENTIAL
Sequential-only instance; no parallel processing.
|
Constructor and Description |
---|
RowRunner(SplitProcessor<?> processor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<A> A |
collect(RowCollector<A> collector,
StarTable table)
Performs a collection operation on table rows.
|
RowSplittable |
createRowSplittable(StarTable table)
Acquires a splittable row sequence from a table.
|
SplitProcessor<RowSplittable> |
getSplitProcessor()
Returns the processor on which this runner is based.
|
public static final SplitPolicy DFLT_POLICY
public static final RowRunner DEFAULT
public static final RowRunner SEQUENTIAL
public static final RowRunner PARTEST
public RowRunner(SplitProcessor<?> processor)
processor
- processor that manages the executionspublic <A> A collect(RowCollector<A> collector, StarTable table) throws java.io.IOException
collector
- collector defining operationtable
- table supplying datajava.io.IOException
public RowSplittable createRowSplittable(StarTable table) throws java.io.IOException
StarTable.getRowSplittable()
,
but this may be overridden if required.table
- input tablejava.io.IOException
public SplitProcessor<RowSplittable> getSplitProcessor()