Re: Use of generics.

2021-09-29 Thread Giorgio Zoppi
Ok, thanks for the clarification. Very helpful and appreciated. BR, Giorgio.

AW: Use of generics.

2021-09-29 Thread Julian Feinauer
Hey, that is, although not very elegant a very common pattern in Java and is e.g. also used by Apache Calcite internally. There a "Table Scan" is roughly representat as an Object[][]. It would be more elegant to use Generics but as Yuan states the first dimension of the array dictate

Re: Use of generics.

2021-09-29 Thread Yuan Tian
Hi, In Java, array is also an object, so the` Object[] values` in Tablet.java is a two-dimension array. Object represents arrays of different type. Java doesn't have class member function template, however maybe in C++, you can use that feature to improve the performance. But even in this way, we

Use of generics.

2021-09-28 Thread Giorgio Zoppi
Hello again, i am in learning mode. I've seen in the Tablet.java an array of Object[] and i want to know the rational of this. We know that in Java generics are "fake" due to the type erasure, but is there any possibility to replace that: *** deviceId of this tablet */