public class SplitOptions extends Object
Constructor and Description |
---|
SplitOptions()
Create a collection with default settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
getNoPartialSplits()
Indicates whether breaking files into
multiple splits is allowed.
|
int |
getTargetSize()
Gets the target size for split generation.
|
int |
hashCode() |
void |
set(SplitOptions options)
Copies the settings from another collection.
|
void |
setNoPartialSplits(boolean enabled)
Controls whether single files are broken into
multiple splits.
|
void |
setTargetSize(int size)
Sets the size to use, in bytes, for generating
file splits.
|
public boolean getNoPartialSplits()
false
if files can be broken
into multiple splits, true
if they
cannot.public void setNoPartialSplits(boolean enabled)
By default, this behavior is disabled.
Split generators must honor this setting.
enabled
- indicates whether breaking
files into multiple splits is disallowedpublic int getTargetSize()
public void setTargetSize(int size)
If set to 0
, the default size for the
file system will be used.
size
- the size, in bytes, to make file splitspublic void set(SplitOptions options)
options
- the settings to copyCopyright © 2021 Actian Corporation. All rights reserved.