diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple1.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple1.java index 9c81070f12a0a27a5769ebbfbd549dd732d298f0..b20ffd1c1a1a2cf79619e0763d0c2e2d8dc147fc 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple1.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple1.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 1 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple1, then be sure to either

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple10.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple10.java index 5f8c06263355211d5a15a76e820da75437df6872..7366c9dce4c2586bbbe2956405437983bbb6101b 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple10.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple10.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 10 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple10, then be sure to either

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple11.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple11.java index 6f366274274fd1ca58102b756b6096fa799d3d8e..cc4a9ebf29ca6862e9d45cf2e3394b2a03b31182 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple11.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple11.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 11 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple11, then be sure to either

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple12.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple12.java index 9fb8d78d8c2ac70f32af0b078b4927c1b3555839..671be97b1e72fc82dd9cab3967d68977e811dbbd 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple12.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple12.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 12 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple12, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple12", then don't use instances of + * Foo in a DataStream<Tuple12> / DataSet<Tuple12>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple13.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple13.java index b8ca79002edf56b21a7c6e6700ff9ac2c1f43dd6..181f0f3c8da5ea72711859b8a9aba44481cf9f00 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple13.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple13.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 13 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple13, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple13", then don't use instances of + * Foo in a DataStream<Tuple13> / DataSet<Tuple13>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple14.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple14.java index 64b9fe3bd0d6bfc9fa3be9ec0c026d96693aa97e..eaefc6890d69aa75baf1631192df71ebe013bd6e 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple14.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple14.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 14 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple14, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple14", then don't use instances of + * Foo in a DataStream<Tuple14> / DataSet<Tuple14>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple15.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple15.java index 9ce3b25891bd85a801aeadea4b657c7c6b0e97c2..73cb3e48d0023581074ffa32568784b3a924e0bc 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple15.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple15.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 15 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple15, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple15", then don't use instances of + * Foo in a DataStream<Tuple15> / DataSet<Tuple15>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple16.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple16.java index b8ba1a62a179b77240550081531ae241ca7c9295..aa2804fee21e7591415a4b28933b65a44d9d1e46 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple16.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple16.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 16 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple16, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple16", then don't use instances of + * Foo in a DataStream<Tuple16> / DataSet<Tuple16>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple17.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple17.java index 20d852b47c7b19c56d053fa6a36c97824c5ba5cc..b9e085558d08d7eb7b4b7c5fb65092c4982263ca 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple17.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple17.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 17 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple17, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple17", then don't use instances of + * Foo in a DataStream<Tuple17> / DataSet<Tuple17>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple18.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple18.java index 5885894473d5f8c0ae49db787ec6c6d2e9391a5e..d1009e9cc0ee9db6dddfe3470d176e68d8789193 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple18.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple18.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 18 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple18, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple18", then don't use instances of + * Foo in a DataStream<Tuple18> / DataSet<Tuple18>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple19.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple19.java index 21f36c0ba5dce77171cad00c24730932cd9a22ab..f35d13121428456ee6a5e92708287950865258d5 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple19.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple19.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 19 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple19, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple19", then don't use instances of + * Foo in a DataStream<Tuple19> / DataSet<Tuple19>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple2.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple2.java index dc65761c6c62a961928fd3c1f6afc11bc120c4e5..76c4d64af4c64ab00086155059a10ec3691a2ba8 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple2.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple2.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 2 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple2, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple2", then don't use instances of + * Foo in a DataStream<Tuple2> / DataSet<Tuple2>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple20.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple20.java index 70465205b67758948fa9eebad9d147a21d1f8464..1ca5a5096152f31e2d6f594c2417d6d6b95ca307 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple20.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple20.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 20 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple20, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple20", then don't use instances of + * Foo in a DataStream<Tuple20> / DataSet<Tuple20>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple21.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple21.java index a826a526715cf41bdeabeda83565b119262ad124..e3cbe48babaa0879fbf74e560d253b047e9b9cbb 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple21.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple21.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 21 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple21, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple21", then don't use instances of + * Foo in a DataStream<Tuple21> / DataSet<Tuple21>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple22.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple22.java index 05025113a539c4e5563e831ea897d7c79716518a..67407b899e5fa8cf01bb2e5d98185c65a2f53d46 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple22.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple22.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 22 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple22, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple22", then don't use instances of + * Foo in a DataStream<Tuple22> / DataSet<Tuple22>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple23.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple23.java index 23c036e6977c7d1d71ffdbf7fb796c79623271c4..2c682e83407d7e5f93457784b0edb1baf670d7b1 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple23.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple23.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 23 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple23, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple23", then don't use instances of + * Foo in a DataStream<Tuple23> / DataSet<Tuple23>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple24.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple24.java index d18d1d4ab2550db43c27acb977b8e531b006ef45..e1964a091fc2cc39de57be4455d5951d485ca362 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple24.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple24.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 24 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple24, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple24", then don't use instances of + * Foo in a DataStream<Tuple24> / DataSet<Tuple24>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple25.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple25.java index 81748249f74dddea5cc662bd3de1b65733ad71d4..ed432722b257f49714d23aa4da9112195e6b48e4 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple25.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple25.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 25 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple25, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple25", then don't use instances of + * Foo in a DataStream<Tuple25> / DataSet<Tuple25>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple3.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple3.java index 27e19ef020ec77772dac6a2b5adafdafc3377edb..0b479e537c69b9b90ca88efb68bdab23a4c30ccb 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple3.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple3.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 3 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple3, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple3", then don't use instances of + * Foo in a DataStream<Tuple3> / DataSet<Tuple3>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple4.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple4.java index 61e4076a2d08bae52bb9839959dd1bf4c22df310..5c4bdf7a0138f08e4c7538531b5aca63e5011c85 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple4.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple4.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 4 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple4, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple4", then don't use instances of + * Foo in a DataStream<Tuple4> / DataSet<Tuple4>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple5.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple5.java index 259db12ad516962bfcd09fcff015240893238c55..b039728ae5d5d870a66854ce473ce8cc2a9c5fd5 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple5.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple5.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 5 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple5, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple5", then don't use instances of + * Foo in a DataStream<Tuple5> / DataSet<Tuple5>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple6.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple6.java index f0dc9d9d5b4492967218588490670fbd29d0c92b..3e57277584eaa1ead254cee13e619f55593779b5 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple6.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple6.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 6 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple6, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple6", then don't use instances of + * Foo in a DataStream<Tuple6> / DataSet<Tuple6>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple7.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple7.java index 9e0b8daf85b27cd7cb762fe5c51d45666fbd0360..a95ff12e94878ca99b2f3bb9b5ec3d04cddfe9b0 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple7.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple7.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 7 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple7, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple7", then don't use instances of + * Foo in a DataStream<Tuple7> / DataSet<Tuple7>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple8.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple8.java index 2807509e8ac3311937ac118e2c1b9d286e12dc7d..ce5aa971a609e3e86f8981d72037d3a83ed21999 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple8.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple8.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 8 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple8, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple8", then don't use instances of + * Foo in a DataStream<Tuple8> / DataSet<Tuple8>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple9.java b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple9.java index 70bbdf7eb7f874e1ccb25e3d4f62245f768c04ed..cd3a18ccb6dc01ac6bc4a2551ae6c488c3005ce2 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple9.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/tuple/Tuple9.java @@ -32,10 +32,17 @@ import org.apache.flink.util.StringUtils; * A tuple with 9 fields. Tuples are strongly typed; each field may be of a separate type. * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position * through the {@link #getField(int)} method. The tuple field positions start at zero. - *

- * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work - * with Tuples to reuse objects in order to reduce pressure on the garbage collector. * + *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work + * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

+ * + *

Warning: If you subclass Tuple9, then be sure to either

    + *
  • not add any new fields, or
  • + *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant + * type. (That is, if you have a "class Foo extends Tuple9", then don't use instances of + * Foo in a DataStream<Tuple9> / DataSet<Tuple9>, but declare it as + * DataStream<Foo> / DataSet<Foo>.)
  • + *

* @see Tuple * * @param The type of field 0 diff --git a/flink-core/src/test/java/org/apache/flink/api/java/tuple/TupleGenerator.java b/flink-core/src/test/java/org/apache/flink/api/java/tuple/TupleGenerator.java index ee3719402b38a32be027b4ff9744b1a1c0cca75e..200c760d75046985f95b04320b13f9d8c1107d1f 100644 --- a/flink-core/src/test/java/org/apache/flink/api/java/tuple/TupleGenerator.java +++ b/flink-core/src/test/java/org/apache/flink/api/java/tuple/TupleGenerator.java @@ -166,7 +166,7 @@ class TupleGenerator { // package and imports w.println("package " + PACKAGE + ';'); w.println(); - w.println("import PublicInterface;"); + w.println("import org.apache.flink.annotation.Public;"); w.println("import org.apache.flink.util.StringUtils;"); w.println(); @@ -175,17 +175,24 @@ class TupleGenerator { w.println(" * A tuple with " + numFields + " fields. Tuples are strongly typed; each field may be of a separate type."); w.println(" * The fields of the tuple can be accessed directly as public fields (f0, f1, ...) or via their position"); w.println(" * through the {@link #getField(int)} method. The tuple field positions start at zero."); - w.println(" *

"); - w.println(" * Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work"); - w.println(" * with Tuples to reuse objects in order to reduce pressure on the garbage collector."); w.println(" *"); + w.println(" *

Tuples are mutable types, meaning that their fields can be re-assigned. This allows functions that work"); + w.println(" * with Tuples to reuse objects in order to reduce pressure on the garbage collector.

"); + w.println(" *"); + w.println(" *

Warning: If you subclass " + className + ", then be sure to either

    "); + w.println(" *
  • not add any new fields, or
  • "); + w.println(" *
  • make it a POJO, and always declare the element type of your DataStreams/DataSets to your descendant"); + w.println(" * type. (That is, if you have a \"class Foo extends " + className + "\", then don't use instances of"); + w.println(" * Foo in a DataStream<" + className + "> / DataSet<" + className + ">, but declare it as"); + w.println(" * DataStream<Foo> / DataSet<Foo>.)
  • "); + w.println(" *

"); w.println(" * @see Tuple"); w.println(" *"); for (int i = 0; i < numFields; i++) { w.println(" * @param <" + GEN_TYPE_PREFIX + i + "> The type of field " + i); } w.println(" */"); - w.println("@PublicInterface"); + w.println("@Public"); w.print("public class " + className + "<"); for (int i = 0; i < numFields; i++) { if (i > 0) { @@ -444,12 +451,12 @@ class TupleGenerator { w.println("import java.util.ArrayList;"); w.println("import java.util.List;"); w.println(); - w.println("import PublicInterface;"); + w.println("import org.apache.flink.annotation.Public;"); w.println("import " + PACKAGE + ".Tuple" + numFields + ";"); w.println(); // class declaration - w.println("@PublicInterface"); + w.println("@Public"); w.print("public class " + className); printGenericsString(w, numFields); w.println(" {");