public final class OperationUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
areReceiversComplete(java.util.concurrent.locks.Lock finalLock,
MessageReceiver finalReceiver,
java.util.concurrent.locks.Lock partialLock,
MessageReceiver partialReceiver)
Progress the receivers and return true if needs further progress
|
static java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> |
getIntegerListMap(InvertedBinaryTreeRouter router,
LogicalPlan instancePlan,
int destination) |
static java.lang.String |
printStackTrace(java.lang.StackTraceElement[] elements) |
static boolean |
progressReceivers(ChannelDataFlowOperation delegate,
java.util.concurrent.locks.Lock lock,
MessageReceiver finalReceiver,
java.util.concurrent.locks.Lock partialLock,
MessageReceiver partialReceiver)
Progress the receivers and return true if needs further progress
|
static void |
shuffleArray(java.util.Random random,
int[] array) |
static void |
swap(int[] array,
int i,
int j) |
public static boolean areReceiversComplete(java.util.concurrent.locks.Lock finalLock, MessageReceiver finalReceiver, java.util.concurrent.locks.Lock partialLock, MessageReceiver partialReceiver)
finalLock
- lock for final receiverfinalReceiver
- final receiverpartialLock
- lock for partial receiverpartialReceiver
- partial receiverpublic static boolean progressReceivers(ChannelDataFlowOperation delegate, java.util.concurrent.locks.Lock lock, MessageReceiver finalReceiver, java.util.concurrent.locks.Lock partialLock, MessageReceiver partialReceiver)
delegate
- the channel dataflow opeationlock
- lock for final receiverfinalReceiver
- final receiverpartialLock
- lock for partial receiverpartialReceiver
- partial receiverpublic static java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getIntegerListMap(InvertedBinaryTreeRouter router, LogicalPlan instancePlan, int destination)
public static void shuffleArray(java.util.Random random, int[] array)
public static void swap(int[] array, int i, int j)
public static java.lang.String printStackTrace(java.lang.StackTraceElement[] elements)