test_class.declarator: shufflePartitioner
test_class.modifier: private
test_class.original_string: private ShufflePartitioner<Tuple> shufflePartitioner;
test_class.type: ShufflePartitioner<Tuple>
test_class.var_name: shufflePartitioner
test_class.declarator: streamRecord = new StreamRecord<Tuple>(null)
test_class.modifier: private
test_class.original_string: private StreamRecord<Tuple> streamRecord = new StreamRecord<Tuple>(null);
test_class.type: StreamRecord<Tuple>
test_class.var_name: streamRecord
test_class.declarator: sd = new SerializationDelegate<StreamRecord<Tuple>>(
  			null)
test_class.modifier: private
test_class.original_string: private SerializationDelegate<StreamRecord<Tuple>> sd = new SerializationDelegate<StreamRecord<Tuple>>(
  			null);
test_class.type: SerializationDelegate<StreamRecord<Tuple>>
test_class.var_name: sd
test_class.file: flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/partitioner/ShufflePartitionerTest.java
test_class.identifier: ShufflePartitionerTest
test_case.body: @Test
  	public void testSelectChannelsInterval() {
  		sd.setInstance(streamRecord);
  		assertEquals(0, shufflePartitioner.selectChannels(sd, 1)[0]);
  
  		assertTrue(0 <= shufflePartitioner.selectChannels(sd, 2)[0]);
  		assertTrue(2 > shufflePartitioner.selectChannels(sd, 2)[0]);
  
  		assertTrue(0 <= shufflePartitioner.selectChannels(sd, 1024)[0]);
  		assertTrue(1024 > shufflePartitioner.selectChannels(sd, 1024)[0]);
  	}
test_case.class_method_signature: ShufflePartitionerTest.testSelectChannelsInterval()
test_case.full_signature: @Test public void testSelectChannelsInterval()
test_case.identifier: testSelectChannelsInterval
test_case.invocations: setInstance assertEquals selectChannels assertTrue selectChannels assertTrue selectChannels assertTrue selectChannels assertTrue selectChannels
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSelectChannelsInterval()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: random = new Random()
focal_class.modifier: private
focal_class.original_string: private Random random = new Random();
focal_class.type: Random
focal_class.var_name: random
focal_class.declarator: returnArray = new int[1]
focal_class.modifier: private
focal_class.original_string: private int[] returnArray = new int[1];
focal_class.type: int[]
focal_class.var_name: returnArray
focal_class.file: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/partitioner/ShufflePartitioner.java
focal_class.identifier: ShufflePartitioner
focal_class.class_method_signature: ShufflePartitioner.selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_class.full_signature: @Override public int[] selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_class.identifier: selectChannels
focal_class.modifiers: @Override public
focal_class.parameters: (SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_class.return: int[]
focal_class.signature: int[] selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_class.class_method_signature: ShufflePartitioner.copy()
focal_class.full_signature: @Override public StreamPartitioner<T> copy()
focal_class.identifier: copy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: StreamPartitioner<T>
focal_class.signature: StreamPartitioner<T> copy()
focal_class.class_method_signature: ShufflePartitioner.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.superclass: extends StreamPartitioner<T>
focal_method.body: @Override
  	public int[] selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels) {
  		returnArray[0] = random.nextInt(numberOfOutputChannels);
  		return returnArray;
  	}
focal_method.class_method_signature: ShufflePartitioner.selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_method.full_signature: @Override public int[] selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_method.identifier: selectChannels
focal_method.invocations: nextInt
focal_method.modifiers: @Override public
focal_method.parameters: (SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)
focal_method.return: int[]
focal_method.signature: int[] selectChannels(SerializationDelegate<StreamRecord<T>> record,
  			int numberOfOutputChannels)