Package com.netflix.lipstick.model.operators.P2jLogicalRelationalOperator

Examples of com.netflix.lipstick.model.operators.P2jLogicalRelationalOperator.Join


     */
    protected String getColspan(P2jLogicalRelationalOperator oper) {
        Integer colspan = null;
        String operator = oper.getOperator().toLowerCase();
        if (operator.equals("lojoin") || operator.equals("locogroup")) {
            Join join;
            if (operator.equals("lojoin")) {
                join = ((P2jLOJoin) oper).getJoin();
            } else {
                join = ((P2jLOCogroup) oper).getGroup();
            }
            colspan = join.getExpression().size();
        }
        return colspan != null ? colspan.toString() : "2";
    }
View Full Code Here


     * @param oper the logical operator
     * @return the appened html
     */
    protected Html genJoinExpressions(Html html, P2jLogicalRelationalOperator oper) {
        if (oper.getOperator().equalsIgnoreCase("LOJoin") || oper.getOperator().equalsIgnoreCase("LOCogroup")) {
            Join join;
            if (oper.getOperator().equalsIgnoreCase("LOJoin")) {
                join = ((P2jLOJoin) oper).getJoin();
            } else {
                join = ((P2jLOCogroup) oper).getGroup();
            }
            Set<Entry<String, JoinExpression>> expressions = join.getExpression().entrySet();
            List<List<String>> exp = Lists.newArrayList();
            for (Entry<String, JoinExpression> entry : expressions) {
                exp.add(entry.getValue().getFields());
            }
            if (expressions.size() > 1) {
View Full Code Here

TOP

Related Classes of com.netflix.lipstick.model.operators.P2jLogicalRelationalOperator.Join

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.