- java.lang.Object
-
- com.pervasive.datarush.ports.record.DatasetOptions
-
public final class DatasetOptions extends Object
Can be used to provide tuning parameters that control how iterative operators stage their data. DatasetOptions are specified via the methodRecordPort.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, acolumar
staging format can provide a large performance speedup. Note that if columnar is used, the operator must also use afiltered
port during iteration in order to indicate to the framework which columns are to be accessed in each pass.
-
-
Field Summary
Fields Modifier and Type Field Description static DatasetOptions
DEFAULT
By default, we use theDatasetStorageFormat.COMPACT_ROW
and a block size of 64.
-
Constructor Summary
Constructors Constructor Description DatasetOptions(DatasetStorageFormat format, int blockSize)
Specify options for staging iterative datasets.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlockSize()
Returns theblock size
to use for writing the dataset.DatasetStorageFormat
getFormat()
Returns theformat
to use for writing the dataset.
-
-
-
Field Detail
-
DEFAULT
public static final DatasetOptions DEFAULT
By default, we use theDatasetStorageFormat.COMPACT_ROW
and a block size of 64.
-
-
Constructor Detail
-
DatasetOptions
public DatasetOptions(DatasetStorageFormat format, int blockSize)
Specify options for staging iterative datasets.- Parameters:
format
- theformat
.blockSize
- theblock size
.
-
-
Method Detail
-
getFormat
public DatasetStorageFormat getFormat()
Returns theformat
to use for writing the dataset.- Returns:
- the format
-
getBlockSize
public int getBlockSize()
Returns theblock size
to use for writing the dataset.- Returns:
- the block size
-
-