public class DistributedDataSet extends InputDataSet
InputDataSet
. An instance of this type is expected to have all the information needed to read and parse the data set it represents.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONF_DS_INPUT_FORMAT_PREFIX |
static java.lang.String |
CONF_DS_KEYS_PREFIX |
static java.lang.String |
CONF_DS_LEN_PREFIX |
static java.lang.String |
CONF_DS_PATHS_PREFIX |
static java.lang.String |
CONF_DS_RI_PROVIDER_PREFIX |
static java.lang.String |
CONF_DS_SPATIAL_CONF_PREFIX |
Constructor and Description |
---|
DistributedDataSet()
Creates a new instance
|
DistributedDataSet(int id)
Creates a new instance with an id
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Gets the data set id
|
java.util.Set<java.lang.String> |
getKeys()
Gets the keys that identify every path of the data set
|
long |
getLength()
Gets the data set length in bytes
|
void |
load(Configuration conf)
Loads data set information from the configuration.
|
void |
load(int id, Configuration conf)
Loads information of the data set with the given id from the configuration
|
void |
setId(int id)
Sets the data set id
|
void |
setInputDataSet(InputDataSet ids)
Copies the information from the input data set
|
void |
setKeys(java.util.Set<java.lang.String> keys)
Sets the keys that identify every path of the data set
|
void |
setLength(long length)
Sets the data set length in bytes
|
void |
store(Configuration conf)
Stores the current data set information in the configuration
|
getIndexMetadataDir, getIndexName, isInputIndex, setIndexMetadataDir, setIndexName, setInputIndex
getInputString, getPaths, setInputString, setPaths
getInputFormatClass, getRecordInfoProviderClass, getSpatialConfig, setInputFormatClass, setRecordInfoProviderClass, setSpatialConfig
public static final java.lang.String CONF_DS_INPUT_FORMAT_PREFIX
public static final java.lang.String CONF_DS_KEYS_PREFIX
public static final java.lang.String CONF_DS_LEN_PREFIX
public static final java.lang.String CONF_DS_PATHS_PREFIX
public static final java.lang.String CONF_DS_RI_PROVIDER_PREFIX
public static final java.lang.String CONF_DS_SPATIAL_CONF_PREFIX
public DistributedDataSet()
public DistributedDataSet(int id)
id
-public int getId()
public java.util.Set<java.lang.String> getKeys()
public long getLength()
getLength
in interface AbstractInputDataSet
getLength
in class SimpleInputDataSet
public void load(Configuration conf)
load
in interface ConfigurationStorable
load
in class FileInputDataSet
conf
-public void load(int id, Configuration conf)
id
-conf
-public void setId(int id)
id
-public void setInputDataSet(InputDataSet ids)
ids
-public void setKeys(java.util.Set<java.lang.String> keys)
keys
-public void setLength(long length)
setLength
in interface AbstractInputDataSet
setLength
in class SimpleInputDataSet
length
-public void store(Configuration conf)
store
in interface ConfigurationStorable
store
in class FileInputDataSet
conf
-Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.