test_class.declarator: broadcastPartitioner1
test_class.modifier: private
test_class.original_string: private BroadcastPartitioner<Tuple> broadcastPartitioner1;
test_class.type: BroadcastPartitioner<Tuple>
test_class.var_name: broadcastPartitioner1
test_class.declarator: broadcastPartitioner2
test_class.modifier: private
test_class.original_string: private BroadcastPartitioner<Tuple> broadcastPartitioner2;
test_class.type: BroadcastPartitioner<Tuple>
test_class.var_name: broadcastPartitioner2
test_class.declarator: broadcastPartitioner3
test_class.modifier: private
test_class.original_string: private BroadcastPartitioner<Tuple> broadcastPartitioner3;
test_class.type: BroadcastPartitioner<Tuple>
test_class.var_name: broadcastPartitioner3
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/BroadcastPartitionerTest.java
test_class.identifier: BroadcastPartitionerTest
test_case.body: @Test
  	public void testSelectChannels() {
  		int[] first = new int[] { 0 };
  		int[] second = new int[] { 0, 1 };
  		int[] sixth = new int[] { 0, 1, 2, 3, 4, 5 };
  		sd.setInstance(streamRecord);
  		assertArrayEquals(first, broadcastPartitioner1.selectChannels(sd, 1));
  		assertArrayEquals(second, broadcastPartitioner2.selectChannels(sd, 2));
  		assertArrayEquals(sixth, broadcastPartitioner3.selectChannels(sd, 6));
  	}
test_case.class_method_signature: BroadcastPartitionerTest.testSelectChannels()
test_case.full_signature: @Test public void testSelectChannels()
test_case.identifier: testSelectChannels
test_case.invocations: setInstance assertArrayEquals selectChannels assertArrayEquals selectChannels assertArrayEquals selectChannels
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSelectChannels()
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
focal_class.original_string: int[] returnArray;
focal_class.type: int[]
focal_class.var_name: returnArray
focal_class.declarator: set
focal_class.original_string: boolean set;
focal_class.type: boolean
focal_class.var_name: set
focal_class.declarator: setNumber
focal_class.original_string: int setNumber;
focal_class.type: int
focal_class.var_name: setNumber
focal_class.file: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/partitioner/BroadcastPartitioner.java
focal_class.identifier: BroadcastPartitioner
focal_class.class_method_signature: BroadcastPartitioner.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: BroadcastPartitioner.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: BroadcastPartitioner.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) {
  		if (set && setNumber == numberOfOutputChannels) {
  			return returnArray;
  		} else {
  			this.returnArray = new int[numberOfOutputChannels];
  			for (int i = 0; i < numberOfOutputChannels; i++) {
  				returnArray[i] = i;
  			}
  			set = true;
  			setNumber = numberOfOutputChannels;
  			return returnArray;
  		}
  	}
focal_method.class_method_signature: BroadcastPartitioner.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)