K
- key typeV
- value typepublic class PartitionWriters<K,V> extends Object
DataGridChunkedCollectionWriter
s used to save the mapper output.Constructor and Description |
---|
PartitionWriters(RunMapContext<K,V> runMapperContext)
Creates the transport pool.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the transport pool and all associated data transports.
|
DataGridChunkedCollectionWriter<K,V> |
getGridWriter(DataGridWriterParameters<K,V> params)
Gets the
DataGridChunkedCollectionWriter for the partition, creating one if necessary. |
public PartitionWriters(RunMapContext<K,V> runMapperContext) throws NoSuchMethodException
runMapperContext
- mapper context containing job informationNoSuchMethodException
- if the method doesn't existpublic DataGridChunkedCollectionWriter<K,V> getGridWriter(DataGridWriterParameters<K,V> params) throws IOException
DataGridChunkedCollectionWriter
for the partition, creating one if necessary.params
- configuration parameters for a DataGridChunkedCollectionWriter
IOException
- If there was an error while communicating with ScaleOut StateServerpublic void close() throws IOException
IOException
- If there was an error while communicating with ScaleOut StateServerCopyright (C) 2007-2014 ScaleOut Software, Inc.