public class JdbcThinPartitionAwarenessMappingGroup extends Object implements JdbcRawBinarylizable
| Constructor and Description |
|---|
JdbcThinPartitionAwarenessMappingGroup(@NotNull Integer cacheId,
Map<UUID,Set<Integer>> partitionsMappings)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Integer> |
cacheIds() |
boolean |
merge(int cacheId,
Map<UUID,Set<Integer>> partitionsMappings)
Tries to merge given partions mappings and corresponding cache id with already existing mappings.
|
void |
readBinary(BinaryReaderExImpl reader,
ClientListenerProtocolVersion ver)
Reads fields from provided reader.
|
static JdbcThinPartitionAwarenessMappingGroup |
readGroup(BinaryReaderExImpl reader,
ClientListenerProtocolVersion ver)
Reads
JdbcThinPartitionAwarenessMappingGroup from provided reader. |
UUID[] |
revertMappings(int partsCnt)
Reverts partitions mappings from the form 'node id -> set of partition ids' to the form 'partition id -> node
id'.
|
void |
writeBinary(BinaryWriterExImpl writer,
ClientListenerProtocolVersion ver)
Writes fields to provided writer.
|
public boolean merge(int cacheId,
Map<UUID,Set<Integer>> partitionsMappings)
cacheId - Cache id.partitionsMappings - Partitions mappings.public UUID[] revertMappings(int partsCnt)
partsCnt - Partitoins count.public void writeBinary(BinaryWriterExImpl writer, ClientListenerProtocolVersion ver) throws BinaryObjectException
writeBinary in interface JdbcRawBinarylizablewriter - Binary object writer.ver - ver Protocol version.BinaryObjectException - In case of error.public void readBinary(BinaryReaderExImpl reader, ClientListenerProtocolVersion ver) throws BinaryObjectException
readBinary in interface JdbcRawBinarylizablereader - Binary object reader.ver - Protocol version.BinaryObjectException - In case of error.public static JdbcThinPartitionAwarenessMappingGroup readGroup(BinaryReaderExImpl reader, ClientListenerProtocolVersion ver) throws BinaryObjectException
JdbcThinPartitionAwarenessMappingGroup from provided reader.reader - Binary object reader.ver - Protocol version.JdbcThinPartitionAwarenessMappingGroup.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020