Package net.hydromatic.optiq.impl.java

Examples of net.hydromatic.optiq.impl.java.AbstractQueryableTable


  private static QueryableTable oneThreePlus(String s) {
    Integer latest = Integer.parseInt(s.substring(1, s.length() - 1));
    List<Object> items = Arrays.<Object>asList(1, 3, latest);
    final Enumerable<Object> enumerable = Linq4j.asEnumerable(items);
    return new AbstractQueryableTable(Object[].class) {
      public Queryable<Object> asQueryable(
          QueryProvider queryProvider, SchemaPlus schema, String tableName) {
        return enumerable.asQueryable();
      }
View Full Code Here


        array = new HrSchema().emps;
      } else {
        clazz = Department.class;
        array = new HrSchema().depts;
      }
      return new AbstractQueryableTable(clazz) {
        public RelDataType getRowType(RelDataTypeFactory typeFactory) {
          return ((JavaTypeFactory) typeFactory).createType(clazz);
        }

        public <T> Queryable<T> asQueryable(QueryProvider queryProvider,
View Full Code Here

TOP

Related Classes of net.hydromatic.optiq.impl.java.AbstractQueryableTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.