test_class.declarator: distributePartitioner
test_class.modifier: private
test_class.original_string: private RebalancePartitioner<Tuple> distributePartitioner;
test_class.type: RebalancePartitioner<Tuple>
test_class.var_name: distributePartitioner
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/RebalancePartitionerTest.java
test_class.identifier: RebalancePartitionerTest
test_case.body: @Test
  	public void testSelectChannelsLength() {
  		sd.setInstance(streamRecord);
  		assertEquals(1, distributePartitioner.selectChannels(sd, 1).length);
  		assertEquals(1, distributePartitioner.selectChannels(sd, 2).length);
  		assertEquals(1, distributePartitioner.selectChannels(sd, 1024).length);
  	}
test_case.class_method_signature: RebalancePartitionerTest.testSelectChannelsLength()
test_case.full_signature: @Test public void testSelectChannelsLength()
test_case.identifier: testSelectChannelsLength
test_case.invocations: setInstance assertEquals selectChannels assertEquals selectChannels assertEquals selectChannels
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSelectChannelsLength()
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: 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/RebalancePartitioner.java
focal_class.identifier: RebalancePartitioner
focal_class.class_method_signature: RebalancePartitioner.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: RebalancePartitioner.copy()
focal_class.full_signature: public StreamPartitioner<T> copy()
focal_class.identifier: copy
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StreamPartitioner<T>
focal_class.signature: StreamPartitioner<T> copy()
focal_class.class_method_signature: RebalancePartitioner.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) {
  		this.returnArray[0] = (this.returnArray[0] + 1) % numberOfOutputChannels;
  		return this.returnArray;
  	}
focal_method.class_method_signature: RebalancePartitioner.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.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)