test_class.declarator: metrics = new SerializableMetricsProvider()
test_class.modifier: protected
test_class.original_string: protected DiscoveryMetricsProvider metrics = new SerializableMetricsProvider();
test_class.type: DiscoveryMetricsProvider
test_class.var_name: metrics
test_class.declarator: ver = new IgniteProductVersion()
test_class.modifier: protected
test_class.original_string: protected IgniteProductVersion ver = new IgniteProductVersion();
test_class.type: IgniteProductVersion
test_class.var_name: ver
test_class.declarator: clusterNode1 = node(metrics, ver, "1")
test_class.modifier: private
test_class.original_string: private ClusterNode clusterNode1 = node(metrics, ver, "1");
test_class.type: ClusterNode
test_class.var_name: clusterNode1
test_class.declarator: clusterNode2 = node(metrics, ver, "2")
test_class.modifier: private
test_class.original_string: private ClusterNode clusterNode2 = node(metrics, ver, "2");
test_class.type: ClusterNode
test_class.var_name: clusterNode2
test_class.declarator: clusterNode3 = node(metrics, ver, "3")
test_class.modifier: private
test_class.original_string: private ClusterNode clusterNode3 = node(metrics, ver, "3");
test_class.type: ClusterNode
test_class.var_name: clusterNode3
test_class.declarator: clusterNode4 = node(metrics, ver, "4")
test_class.modifier: private
test_class.original_string: private ClusterNode clusterNode4 = node(metrics, ver, "4");
test_class.type: ClusterNode
test_class.var_name: clusterNode4
test_class.declarator: clusterNode5 = node(metrics, ver, "5")
test_class.modifier: private
test_class.original_string: private ClusterNode clusterNode5 = node(metrics, ver, "5");
test_class.type: ClusterNode
test_class.var_name: clusterNode5
test_class.declarator: clusterNode6 = node(metrics, ver, "6")
test_class.modifier: private
test_class.original_string: private ClusterNode clusterNode6 = node(metrics, ver, "6");
test_class.type: ClusterNode
test_class.var_name: clusterNode6
test_class.declarator: clusterNodes = new ArrayList<ClusterNode>() {{
          add(clusterNode1);
          add(clusterNode2);
          add(clusterNode3);
          add(clusterNode4);
          add(clusterNode5);
          add(clusterNode6);
      }}
test_class.modifier: private
test_class.original_string: private List<ClusterNode> clusterNodes = new ArrayList<ClusterNode>() {{
          add(clusterNode1);
          add(clusterNode2);
          add(clusterNode3);
          add(clusterNode4);
          add(clusterNode5);
          add(clusterNode6);
      }};
test_class.type: List<ClusterNode>
test_class.var_name: clusterNodes
test_class.file: modules/core/src/test/java/org/apache/ignite/internal/processors/affinity/GridAffinityAssignmentV2Test.java
test_class.identifier: GridAffinityAssignmentV2Test
test_case.body: @Test
      public void testSerialization() throws IOException, ClassNotFoundException {
          List<ClusterNode> nodes = new ArrayList<>();
  
          for (int i = 0; i < 10; i++)
              nodes.add(node(metrics, ver, "1" + i));
  
          GridAffinityAssignmentV2 gridAffinityAssignment2 = new GridAffinityAssignmentV2(
              new AffinityTopologyVersion(1, 0),
              new ArrayList<List<ClusterNode>>() {{
                  add(nodes);
              }},
              new ArrayList<>()
          );
  
          ByteArrayOutputStream byteArrOutputStream = new ByteArrayOutputStream();
  
          ObjectOutputStream outputStream = new ObjectOutputStream(byteArrOutputStream);
  
          outputStream.writeObject(gridAffinityAssignment2);
  
          ObjectInputStream inputStream = new ObjectInputStream(new ByteArrayInputStream(byteArrOutputStream.toByteArray()));
  
          GridAffinityAssignmentV2 deserialized = (GridAffinityAssignmentV2)inputStream.readObject();
  
          assertEquals(deserialized.topologyVersion(), gridAffinityAssignment2.topologyVersion());
      }
test_case.class_method_signature: GridAffinityAssignmentV2Test.testSerialization()
test_case.full_signature: @Test public void testSerialization()
test_case.identifier: testSerialization
test_case.invocations: add node add writeObject toByteArray readObject assertEquals topologyVersion topologyVersion
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSerialization()
focal_class.declarator: serialVersionUID = 0L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 0L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: topVer
focal_class.modifier: private
focal_class.original_string: private AffinityTopologyVersion topVer;
focal_class.type: AffinityTopologyVersion
focal_class.var_name: topVer
focal_class.declarator: assignment
focal_class.modifier: private
focal_class.original_string: private List<List<ClusterNode>> assignment;
focal_class.type: List<List<ClusterNode>>
focal_class.var_name: assignment
focal_class.declarator: primary
focal_class.modifier: private
focal_class.original_string: private Map<UUID, Set<Integer>> primary;
focal_class.type: Map<UUID, Set<Integer>>
focal_class.var_name: primary
focal_class.declarator: backup
focal_class.modifier: private
focal_class.original_string: private Map<UUID, Set<Integer>> backup;
focal_class.type: Map<UUID, Set<Integer>>
focal_class.var_name: backup
focal_class.declarator: primariesDifferentToIdeal
focal_class.modifier: private
focal_class.original_string: private Set<Integer> primariesDifferentToIdeal;
focal_class.type: Set<Integer>
focal_class.var_name: primariesDifferentToIdeal
focal_class.declarator: assignmentIds
focal_class.modifier: private transient volatile
focal_class.original_string: private transient volatile List<Collection<UUID>> assignmentIds;
focal_class.type: List<Collection<UUID>>
focal_class.var_name: assignmentIds
focal_class.declarator: nodes
focal_class.modifier: private transient volatile
focal_class.original_string: private transient volatile Set<ClusterNode> nodes;
focal_class.type: Set<ClusterNode>
focal_class.var_name: nodes
focal_class.declarator: primaryPartsNodes
focal_class.modifier: private transient volatile
focal_class.original_string: private transient volatile Set<ClusterNode> primaryPartsNodes;
focal_class.type: Set<ClusterNode>
focal_class.var_name: primaryPartsNodes
focal_class.declarator: idealAssignment
focal_class.modifier: private transient
focal_class.original_string: private transient List<List<ClusterNode>> idealAssignment;
focal_class.type: List<List<ClusterNode>>
focal_class.var_name: idealAssignment
focal_class.file: modules/core/src/main/java/org/apache/ignite/internal/processors/affinity/GridAffinityAssignmentV2.java
focal_class.identifier: GridAffinityAssignmentV2
focal_class.interfaces: implements AffinityAssignment
focal_class.class_method_signature: GridAffinityAssignmentV2.GridAffinityAssignmentV2()
focal_class.full_signature: public  GridAffinityAssignmentV2()
focal_class.identifier: GridAffinityAssignmentV2
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  GridAffinityAssignmentV2()
focal_class.class_method_signature: GridAffinityAssignmentV2.GridAffinityAssignmentV2(AffinityTopologyVersion topVer)
focal_class.full_signature:   GridAffinityAssignmentV2(AffinityTopologyVersion topVer)
focal_class.identifier: GridAffinityAssignmentV2
focal_class.parameters: (AffinityTopologyVersion topVer)
focal_class.signature:  GridAffinityAssignmentV2(AffinityTopologyVersion topVer)
focal_class.class_method_signature: GridAffinityAssignmentV2.GridAffinityAssignmentV2(AffinityTopologyVersion topVer,
          List<List<ClusterNode>> assignment,
          List<List<ClusterNode>> idealAssignment
      )
focal_class.full_signature: public  GridAffinityAssignmentV2(AffinityTopologyVersion topVer,
          List<List<ClusterNode>> assignment,
          List<List<ClusterNode>> idealAssignment
      )
focal_class.identifier: GridAffinityAssignmentV2
focal_class.modifiers: public
focal_class.parameters: (AffinityTopologyVersion topVer,
          List<List<ClusterNode>> assignment,
          List<List<ClusterNode>> idealAssignment
      )
focal_class.signature:  GridAffinityAssignmentV2(AffinityTopologyVersion topVer,
          List<List<ClusterNode>> assignment,
          List<List<ClusterNode>> idealAssignment
      )
focal_class.class_method_signature: GridAffinityAssignmentV2.GridAffinityAssignmentV2(AffinityTopologyVersion topVer, GridAffinityAssignmentV2 aff)
focal_class.full_signature:   GridAffinityAssignmentV2(AffinityTopologyVersion topVer, GridAffinityAssignmentV2 aff)
focal_class.identifier: GridAffinityAssignmentV2
focal_class.parameters: (AffinityTopologyVersion topVer, GridAffinityAssignmentV2 aff)
focal_class.signature:  GridAffinityAssignmentV2(AffinityTopologyVersion topVer, GridAffinityAssignmentV2 aff)
focal_class.class_method_signature: GridAffinityAssignmentV2.idealAssignment()
focal_class.full_signature: @Override public List<List<ClusterNode>> idealAssignment()
focal_class.identifier: idealAssignment
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<List<ClusterNode>>
focal_class.signature: List<List<ClusterNode>> idealAssignment()
focal_class.class_method_signature: GridAffinityAssignmentV2.assignment()
focal_class.full_signature: @Override public List<List<ClusterNode>> assignment()
focal_class.identifier: assignment
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<List<ClusterNode>>
focal_class.signature: List<List<ClusterNode>> assignment()
focal_class.class_method_signature: GridAffinityAssignmentV2.topologyVersion()
focal_class.full_signature: @Override public AffinityTopologyVersion topologyVersion()
focal_class.identifier: topologyVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AffinityTopologyVersion
focal_class.signature: AffinityTopologyVersion topologyVersion()
focal_class.class_method_signature: GridAffinityAssignmentV2.get(int part)
focal_class.full_signature: @Override public List<ClusterNode> get(int part)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (int part)
focal_class.return: List<ClusterNode>
focal_class.signature: List<ClusterNode> get(int part)
focal_class.class_method_signature: GridAffinityAssignmentV2.getIds(int part)
focal_class.full_signature: @Override public Collection<UUID> getIds(int part)
focal_class.identifier: getIds
focal_class.modifiers: @Override public
focal_class.parameters: (int part)
focal_class.return: Collection<UUID>
focal_class.signature: Collection<UUID> getIds(int part)
focal_class.class_method_signature: GridAffinityAssignmentV2.getOrCreateAssignmentsIds(int part)
focal_class.full_signature: private Collection<UUID> getOrCreateAssignmentsIds(int part)
focal_class.identifier: getOrCreateAssignmentsIds
focal_class.modifiers: private
focal_class.parameters: (int part)
focal_class.return: Collection<UUID>
focal_class.signature: Collection<UUID> getOrCreateAssignmentsIds(int part)
focal_class.class_method_signature: GridAffinityAssignmentV2.nodes()
focal_class.full_signature: @Override public Set<ClusterNode> nodes()
focal_class.identifier: nodes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<ClusterNode>
focal_class.signature: Set<ClusterNode> nodes()
focal_class.class_method_signature: GridAffinityAssignmentV2.primaryPartitionNodes()
focal_class.full_signature: @Override public Set<ClusterNode> primaryPartitionNodes()
focal_class.identifier: primaryPartitionNodes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<ClusterNode>
focal_class.signature: Set<ClusterNode> primaryPartitionNodes()
focal_class.class_method_signature: GridAffinityAssignmentV2.primaryPartitions(UUID nodeId)
focal_class.full_signature: @Override public Set<Integer> primaryPartitions(UUID nodeId)
focal_class.identifier: primaryPartitions
focal_class.modifiers: @Override public
focal_class.parameters: (UUID nodeId)
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> primaryPartitions(UUID nodeId)
focal_class.class_method_signature: GridAffinityAssignmentV2.backupPartitions(UUID nodeId)
focal_class.full_signature: @Override public Set<Integer> backupPartitions(UUID nodeId)
focal_class.identifier: backupPartitions
focal_class.modifiers: @Override public
focal_class.parameters: (UUID nodeId)
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> backupPartitions(UUID nodeId)
focal_class.class_method_signature: GridAffinityAssignmentV2.partitionPrimariesDifferentToIdeal()
focal_class.full_signature: @Override public Set<Integer> partitionPrimariesDifferentToIdeal()
focal_class.identifier: partitionPrimariesDifferentToIdeal
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> partitionPrimariesDifferentToIdeal()
focal_class.class_method_signature: GridAffinityAssignmentV2.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: GridAffinityAssignmentV2.equals(Object o)
focal_class.full_signature: @SuppressWarnings("SimplifiableIfStatement") @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings("SimplifiableIfStatement") @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: GridAffinityAssignmentV2.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: GridAffinityAssignmentV2.writeExternalData(ObjectOutput out)
focal_class.full_signature: @Override protected void writeExternalData(ObjectOutput out)
focal_class.identifier: writeExternalData
focal_class.modifiers: @Override protected
focal_class.parameters: (ObjectOutput out)
focal_class.return: void
focal_class.signature: void writeExternalData(ObjectOutput out)
focal_class.class_method_signature: GridAffinityAssignmentV2.readExternalData(byte protoVer, ObjectInput in)
focal_class.full_signature: @Override protected void readExternalData(byte protoVer, ObjectInput in)
focal_class.identifier: readExternalData
focal_class.modifiers: @Override protected
focal_class.parameters: (byte protoVer, ObjectInput in)
focal_class.return: void
focal_class.signature: void readExternalData(byte protoVer, ObjectInput in)
focal_class.superclass: extends IgniteDataTransferObject
focal_method.body: @Override public AffinityTopologyVersion topologyVersion() {
          return topVer;
      }
focal_method.class_method_signature: GridAffinityAssignmentV2.topologyVersion()
focal_method.full_signature: @Override public AffinityTopologyVersion topologyVersion()
focal_method.identifier: topologyVersion
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: AffinityTopologyVersion
focal_method.signature: AffinityTopologyVersion topologyVersion()