Package com.tinkerpop.gremlin.pipes.util

Examples of com.tinkerpop.gremlin.pipes.util.Table



    public static Iterable getRepresentation(final Object result) {
        if (result instanceof Iterable) {
            if (result instanceof Table) {
                final Table table = (Table) result;
                return new IterableWrapper<Map<String,Object>,Table.Row>(table) {
                    @Override
                    protected Map<String, Object> underlyingObjectToObject(Table.Row row) {
                        Map<String,Object> result=new LinkedHashMap<String, Object>();
                        for (String column : table.getColumnNames()) {
                            result.put(column, row.getColumn(column));
                        }
                        return result;
                    }
                };
View Full Code Here

TOP

Related Classes of com.tinkerpop.gremlin.pipes.util.Table

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.