Package com.alibaba.wasp.meta

Examples of com.alibaba.wasp.meta.FTable.addIndex()


    FTable table = FMetaTestUtil.getTestTable();
    List<String> fields = new ArrayList<String>();
    fields.add("c4");
    fields.add("c5");
    Index i1 = FMetaTestUtil.makeIndex(table, "i1", fields);
    table.addIndex(i1);
    fields = new ArrayList<String>();
    fields.add("c5");
    fields.add("c4");
    Index i2 = FMetaTestUtil.makeIndex(table, "i2", fields);
    table.addIndex(i2);
View Full Code Here


    table.addIndex(i1);
    fields = new ArrayList<String>();
    fields.add("c5");
    fields.add("c4");
    Index i2 = FMetaTestUtil.makeIndex(table, "i2", fields);
    table.addIndex(i2);

    String sql1 = "SELECT c1, c2, c3 from test where c4=1 and c5=2;";
    String sql2 = "SELECT c1, c2, c3 from test where c5=2 and c4=1;";

    String[] sqlList = { sql1, sql2 }; // sql1, sql2, sql3
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.