public class PartitionTableView extends Object
getAddresses(int)
returns clone of internal addresses array.
Constructor and Description |
---|
PartitionTableView(Address[][] addresses,
int version) |
PartitionTableView(InternalPartition[] partitions,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Address |
getAddress(int partitionId,
int replicaIndex) |
Address[] |
getAddresses(int partitionId) |
int |
getLength() |
int |
getVersion() |
int |
hashCode() |
static PartitionTableView |
readData(ObjectDataInput in) |
String |
toString() |
static void |
writeData(PartitionTableView table,
ObjectDataOutput out) |
public PartitionTableView(Address[][] addresses, int version)
public PartitionTableView(InternalPartition[] partitions, int version)
public int getVersion()
public Address getAddress(int partitionId, int replicaIndex)
public int getLength()
public Address[] getAddresses(int partitionId)
public static void writeData(PartitionTableView table, ObjectDataOutput out) throws IOException
IOException
public static PartitionTableView readData(ObjectDataInput in) throws IOException
IOException
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.