public final class DatasetOptions extends Object
RecordPort.setIterationStagingOptions(com.pervasive.datarush.operators.IterativeMetadataContext, com.pervasive.datarush.ports.record.DatasetOptions)
. This is primarily used
by iterative operators that need to access a small subset of the columns with each pass; for
those operators, a columar
staging format can provide
a large performance speedup. Note that if columnar is used, the operator must also
use a filtered
port during iteration in order to indicate
to the framework which columns are to be accessed in each pass.Modifier and Type | Field and Description |
---|---|
static DatasetOptions |
DEFAULT
By default, we use the
DatasetStorageFormat.COMPACT_ROW and a block size of
64. |
Constructor and Description |
---|
DatasetOptions(DatasetStorageFormat format,
int blockSize)
Specify options for staging iterative datasets.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockSize()
Returns the
block size to use
for writing the dataset. |
DatasetStorageFormat |
getFormat()
Returns the
format to
use for writing the dataset. |
public static final DatasetOptions DEFAULT
DatasetStorageFormat.COMPACT_ROW
and a block size of
64.public DatasetOptions(DatasetStorageFormat format, int blockSize)
format
- the format
.blockSize
- the block size
.public DatasetStorageFormat getFormat()
format
to
use for writing the dataset.public int getBlockSize()
block size
to use
for writing the dataset.Copyright © 2019 Actian Corporation. All rights reserved.