test_class.declarator: testStrings
test_class.modifier: private
test_class.original_string: private String[] testStrings;
test_class.type: String[]
test_class.var_name: testStrings
test_class.declarator: CLASSES = new Class<?>[] { Tuple1.class, Tuple2.class,
  			Tuple3.class, Tuple4.class, Tuple5.class, Tuple6.class, Tuple7.class, Tuple8.class,
  			Tuple9.class, Tuple10.class, Tuple11.class, Tuple12.class, Tuple13.class,
  			Tuple14.class, Tuple15.class, Tuple16.class, Tuple17.class, Tuple18.class,
  			Tuple19.class, Tuple20.class, Tuple21.class, Tuple22.class, Tuple23.class,
  			Tuple24.class, Tuple25.class }
test_class.modifier: private static final
test_class.original_string: private static final Class<?>[] CLASSES = new Class<?>[] { Tuple1.class, Tuple2.class,
  			Tuple3.class, Tuple4.class, Tuple5.class, Tuple6.class, Tuple7.class, Tuple8.class,
  			Tuple9.class, Tuple10.class, Tuple11.class, Tuple12.class, Tuple13.class,
  			Tuple14.class, Tuple15.class, Tuple16.class, Tuple17.class, Tuple18.class,
  			Tuple19.class, Tuple20.class, Tuple21.class, Tuple22.class, Tuple23.class,
  			Tuple24.class, Tuple25.class };
test_class.type: Class<?>[]
test_class.var_name: CLASSES
test_class.file: flink-streaming-java/src/test/java/org/apache/flink/streaming/api/functions/windowing/delta/extractor/ArrayFromTupleTest.java
test_class.identifier: ArrayFromTupleTest
test_case.body: @Test
  	public void testConvertFromTupleToArray() throws InstantiationException, IllegalAccessException {
  		for (int i = 0; i < Tuple.MAX_ARITY; i++) {
  			Tuple currentTuple = (Tuple) CLASSES[i].newInstance();
  			String[] currentArray = new String[i + 1];
  			for (int j = 0; j <= i; j++) {
  				currentTuple.setField(testStrings[j], j);
  				currentArray[j] = testStrings[j];
  			}
  			arrayEqualityCheck(currentArray, new ArrayFromTuple().extract(currentTuple));
  		}
  	}
test_case.class_method_signature: ArrayFromTupleTest.testConvertFromTupleToArray()
test_case.full_signature: @Test public void testConvertFromTupleToArray()
test_case.identifier: testConvertFromTupleToArray
test_case.invocations: newInstance setField arrayEqualityCheck extract
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertFromTupleToArray()
focal_class.declarator: serialVersionUID = -6076121226427616818L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -6076121226427616818L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: order = null
focal_class.original_string: int[] order = null;
focal_class.type: int[]
focal_class.var_name: order
focal_class.file: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/windowing/delta/extractor/ArrayFromTuple.java
focal_class.identifier: ArrayFromTuple
focal_class.interfaces: implements Extractor<Tuple, Object[]>
focal_class.class_method_signature: ArrayFromTuple.ArrayFromTuple()
focal_class.full_signature: public  ArrayFromTuple()
focal_class.identifier: ArrayFromTuple
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ArrayFromTuple()
focal_class.class_method_signature: ArrayFromTuple.ArrayFromTuple(int... indexes)
focal_class.full_signature: public  ArrayFromTuple(int... indexes)
focal_class.identifier: ArrayFromTuple
focal_class.modifiers: public
focal_class.parameters: (int... indexes)
focal_class.signature:  ArrayFromTuple(int... indexes)
focal_class.class_method_signature: ArrayFromTuple.extract(Tuple in)
focal_class.full_signature: @Override public Object[] extract(Tuple in)
focal_class.identifier: extract
focal_class.modifiers: @Override public
focal_class.parameters: (Tuple in)
focal_class.return: Object[]
focal_class.signature: Object[] extract(Tuple in)
focal_method.body: @Override
  	public Object[] extract(Tuple in) {
  		Object[] output;
  
  		if (order == null) {
  			// copy the whole tuple
  			output = new Object[in.getArity()];
  			for (int i = 0; i < in.getArity(); i++) {
  				output[i] = in.getField(i);
  			}
  		} else {
  			// copy user specified order
  			output = new Object[order.length];
  			for (int i = 0; i < order.length; i++) {
  				output[i] = in.getField(order[i]);
  			}
  		}
  
  		return output;
  	}
focal_method.class_method_signature: ArrayFromTuple.extract(Tuple in)
focal_method.full_signature: @Override public Object[] extract(Tuple in)
focal_method.identifier: extract
focal_method.invocations: getArity getArity getField getField
focal_method.modifiers: @Override public
focal_method.parameters: (Tuple in)
focal_method.return: Object[]
focal_method.signature: Object[] extract(Tuple in)