Class PlatformAffinityUtils
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityUtils
-
public class PlatformAffinityUtils extends Object
Affinity serialization functions.
-
-
Constructor Summary
Constructors Constructor Description PlatformAffinityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull List<List<ClusterNode>>readPartitionAssignment(BinaryRawReader reader, PlatformContext ctx)Reads the partition assignment.static voidwriteAffinityFunctionContext(AffinityFunctionContext affCtx, BinaryRawWriterEx writer, PlatformContext ctx)Writes the affinity function context.static voidwritePartitionAssignment(Collection<List<ClusterNode>> partitions, BinaryRawWriterEx writer, PlatformContext ctx)Writes the partition assignment to a stream.
-
-
-
Method Detail
-
writeAffinityFunctionContext
public static void writeAffinityFunctionContext(AffinityFunctionContext affCtx, BinaryRawWriterEx writer, PlatformContext ctx)
Writes the affinity function context.- Parameters:
affCtx- Affinity context.writer- Writer.ctx- Platform context.
-
writePartitionAssignment
public static void writePartitionAssignment(Collection<List<ClusterNode>> partitions, BinaryRawWriterEx writer, PlatformContext ctx)
Writes the partition assignment to a stream.- Parameters:
partitions- Partitions.writer- Writer.
-
readPartitionAssignment
@NotNull public static @NotNull List<List<ClusterNode>> readPartitionAssignment(BinaryRawReader reader, PlatformContext ctx)
Reads the partition assignment.- Parameters:
reader- Reader.ctx- Platform context.- Returns:
- Partitions.
-
-