public class AddressesAndPartitionsWritable extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description | 
|---|
| AddressesAndPartitionsWritable()Constructor for reflection | 
| AddressesAndPartitionsWritable(MasterInfo masterInfo,
                              List<WorkerInfo> workerInfos,
                              Collection<PartitionOwner> partitionOwners)Constructor when we want to serialize object | 
| Modifier and Type | Method and Description | 
|---|---|
| MasterInfo | getMasterInfo()Get master information | 
| Collection<PartitionOwner> | getPartitionOwners()Get partition owners | 
| List<WorkerInfo> | getWorkerInfos()Get all workers | 
| void | readFields(DataInput input) | 
| void | write(DataOutput output) | 
public AddressesAndPartitionsWritable(MasterInfo masterInfo, List<WorkerInfo> workerInfos, Collection<PartitionOwner> partitionOwners)
masterInfo - Master informationworkerInfos - List of all workerspartitionOwners - Collection of partitionspublic AddressesAndPartitionsWritable()
public MasterInfo getMasterInfo()
public List<WorkerInfo> getWorkerInfos()
public Collection<PartitionOwner> getPartitionOwners()
public void write(DataOutput output) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput input) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.