Package com.netflix.lipstick.model.operators.elements

Examples of com.netflix.lipstick.model.operators.elements.SchemaElement


    protected Html genSchema(Html html, P2jLogicalRelationalOperator oper) {
        if (displaySchema(oper)) {
            if (oper.getSchema() != null) {
                Iterator<SchemaElement> iter = oper.getSchema().iterator();
                while (iter.hasNext()) {
                    SchemaElement e = iter.next();
                    html.tr().bgcolor(BG_WHITE);
                    html.td().bgcolor(BG_WHITE).text(e.getAlias() != null ? e.getAlias() : "?").end();
                    html.td().bgcolor(BG_WHITE).text(e.getType()).end();
                    html.end();
                }
            }
        }
        return html;
View Full Code Here


        }

        List<SchemaElement> schemaList = Lists.newArrayList();
        List<LogicalFieldSchema> fields = src.getFields();
        for (LogicalFieldSchema f : fields) {
            SchemaElement ele = new SchemaElement();
            if (f.alias != null) {
                ele.setAlias(f.alias.toString());
            }
            ele.setType(TYPESMAP.get(f.type));
            if (f.schema != null) {
                ele.setSchemaElements(processSchema(f.schema));
            }
            schemaList.add(ele);
        }
        return schemaList;
    }
View Full Code Here

TOP

Related Classes of com.netflix.lipstick.model.operators.elements.SchemaElement

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.