Search in sources :

Example 11 with View

use of com.hazelcast.sql.impl.schema.view.View in project hazelcast by hazelcast.

the class ViewsTable method rows.

@Override
protected List<Object[]> rows() {
    List<Object[]> rows = new ArrayList<>(views.size());
    for (View v : views) {
        Object[] row = new Object[] { catalog(), mappingsSchema, v.name(), v.query(), // check_option, NONE by default
        "NONE", // is_updatable,    NO by default
        "NO", // insertable_into, NO by default
        "NO" };
        rows.add(row);
    }
    return rows;
}
Also used : ArrayList(java.util.ArrayList) View(com.hazelcast.sql.impl.schema.view.View)

Aggregations

View (com.hazelcast.sql.impl.schema.view.View)11 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)6 QuickTest (com.hazelcast.test.annotation.QuickTest)6 Test (org.junit.Test)6 Mapping (com.hazelcast.sql.impl.schema.Mapping)4 MappingField (com.hazelcast.sql.impl.schema.MappingField)4 ArrayList (java.util.ArrayList)4 QueryException (com.hazelcast.sql.impl.QueryException)2 EntryEvent (com.hazelcast.core.EntryEvent)1 ArrayDataSerializableFactory (com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)1 ConstructorFunction (com.hazelcast.internal.util.ConstructorFunction)1 SqlConnector (com.hazelcast.jet.sql.impl.connector.SqlConnector)1 SqlConnectorCache (com.hazelcast.jet.sql.impl.connector.SqlConnectorCache)1 MappingColumnsTable (com.hazelcast.jet.sql.impl.connector.infoschema.MappingColumnsTable)1 MappingsTable (com.hazelcast.jet.sql.impl.connector.infoschema.MappingsTable)1 TablesTable (com.hazelcast.jet.sql.impl.connector.infoschema.TablesTable)1 ViewsTable (com.hazelcast.jet.sql.impl.connector.infoschema.ViewsTable)1 ViewTable (com.hazelcast.jet.sql.impl.connector.virtual.ViewTable)1 NodeEngine (com.hazelcast.spi.impl.NodeEngine)1 CATALOG (com.hazelcast.sql.impl.QueryUtils.CATALOG)1