Package org.apache.calcite.chinook
Class PreferredGenresTableFactory
- java.lang.Object
-
- org.apache.calcite.chinook.PreferredGenresTableFactory
-
- All Implemented Interfaces:
TableFactory<AbstractQueryableTable>
public class PreferredGenresTableFactory extends java.lang.Object implements TableFactory<AbstractQueryableTable>
Factory for the table of genres 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_GENRES
-
Constructor Summary
Constructors Constructor Description PreferredGenresTableFactory()
-
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>
fetchPreferredGenres()
-
-
-
Field Detail
-
SPECIFIC_USER_PREFERRED_GENRES
private static final java.lang.Integer[] SPECIFIC_USER_PREFERRED_GENRES
-
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.
-
fetchPreferredGenres
private Queryable<java.lang.Integer> fetchPreferredGenres()
-
-