public class DataGridWriterParameters<KEY,VALUE> extends DataGridParameters<KEY,VALUE>
DataGridParameters used to initialize a DataGridChunkedCollectionWriter.| Constructor and Description |
|---|
DataGridWriterParameters(int region,
int appId,
boolean memoryMappedFileEnabled,
SerializerDeserializer<KEY> keySerializer,
SerializerDeserializer<VALUE> valueSerializer,
com.scaleoutsoftware.soss.client.util.SerializationMode serializationMode,
RunMapContext<KEY,VALUE> mapperContext,
int hadoopPartition)
Default constructor for data grid parameters
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHadoopPartition()
Gets the Hadoop partition associated with this writer.
|
RunMapContext<KEY,VALUE> |
getMapperContext()
Gets the map phase context.
|
void |
setHadoopPartition(int hadoopPartition)
Set the Hadoop partition associated with this writer.
|
getAppId, getFirstKeySerializer, getMemoryMappedFileEnabled, getRegion, getSerializationMode, getValueSerializer, setRegionpublic DataGridWriterParameters(int region,
int appId,
boolean memoryMappedFileEnabled,
SerializerDeserializer<KEY> keySerializer,
SerializerDeserializer<VALUE> valueSerializer,
com.scaleoutsoftware.soss.client.util.SerializationMode serializationMode,
RunMapContext<KEY,VALUE> mapperContext,
int hadoopPartition)
region - The region the reader/writer will be operating onappId - The application ID the reader/writer will be operating onmemoryMappedFileEnabled - Whether to use memory mapped fileskeySerializer - Serializer for keysvalueSerializer - Serializer for ValuesmapperContext - The mapper contexthadoopPartition - The Hadoop partition associated with this writerpublic RunMapContext<KEY,VALUE> getMapperContext()
public int getHadoopPartition()
public void setHadoopPartition(int hadoopPartition)
hadoopPartition - the new Hadoop partitionCopyright (C) 2007-2014 ScaleOut Software, Inc.