Package org.apache.calcite.chinook
Class PreferredAlbumsTableFactory
- java.lang.Object
-
- org.apache.calcite.chinook.PreferredAlbumsTableFactory
-
- All Implemented Interfaces:
TableFactory<AbstractQueryableTable>
public class PreferredAlbumsTableFactory extends java.lang.Object implements TableFactory<AbstractQueryableTable>
Factory for the table of albums preferred by the current user.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
FIRST_ID
private static int
LAST_ID
private static java.lang.Integer[]
SPECIFIC_USER_PREFERRED_ALBUMS
-
Constructor Summary
Constructors Constructor Description PreferredAlbumsTableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractQueryableTable
create(SchemaPlus schema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand, RelDataType rowType)
Creates a Table.private Queryable<java.lang.Integer>
fetchPreferredAlbums()
-
-
-
Field Detail
-
SPECIFIC_USER_PREFERRED_ALBUMS
private static final java.lang.Integer[] SPECIFIC_USER_PREFERRED_ALBUMS
-
FIRST_ID
private static final int FIRST_ID
- See Also:
- Constant Field Values
-
LAST_ID
private static final int LAST_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public AbstractQueryableTable create(SchemaPlus schema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand, RelDataType rowType)
Description copied from interface:TableFactory
Creates a Table.- Specified by:
create
in interfaceTableFactory<AbstractQueryableTable>
- Parameters:
schema
- Schema this table belongs toname
- Name of this tableoperand
- The "operand" JSON propertyrowType
- Row type. Specified if the "columns" JSON property.
-
fetchPreferredAlbums
private Queryable<java.lang.Integer> fetchPreferredAlbums()
-
-