com.tinkerpop.rexster.gremlin.converter.ConsoleResultConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rexster-protocol Show documentation
Show all versions of rexster-protocol Show documentation
RexPro is a binary protocol for Rexster graph server.
package com.tinkerpop.rexster.gremlin.converter;
import com.tinkerpop.pipes.util.iterators.SingleIterator;
import org.apache.commons.collections.iterators.ArrayIterator;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* @author Stephen Mallette (http://stephen.genoprime.com)
* @author Blake Eggleston (bdeggleston.github.com)
*/
public class ConsoleResultConverter implements ResultConverter> {
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
private final Writer outputWriter;
public ConsoleResultConverter(final Writer outputWriter) {
this.outputWriter = outputWriter;
}
public List convert(final Object result) throws Exception {
try {
final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy