/** Creates a ListTable. */ public ListTable( Schema schema, Type elementType, RelDataType relDataType, Expression expression, List<T> list) { super(schema.getQueryProvider(), elementType, expression); this.schema = schema; this.relDataType = relDataType; this.list = list; }
/** Creates an ArrayTable. */ public ArrayTable( Schema schema, Type elementType, RelDataType relDataType, Expression expression, List<Pair<Representation, Object>> pairs, int size) { super(schema.getQueryProvider(), elementType, expression); this.schema = schema; this.relDataType = relDataType; this.pairs = pairs; this.size = size; assert relDataType.getFieldCount() == pairs.size(); }