public class ThriftOutput<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ThriftOutput.Builder<T>
Builder class for Thrift output
|
Modifier and Type | Method and Description |
---|---|
static <T> ThriftOutput.Builder<T> |
builder(DirectedAcyclicGraph<T> graph) |
void |
writeOutput(PrintStream printStream)
Writes out the graph in thrift binary format to the given printStream.
|
void |
writeOutput(ThriftProtocol thriftProtocol,
PrintStream printStream)
Writes out the graph in thrift format to the given printStream.
|
public static <T> ThriftOutput.Builder<T> builder(DirectedAcyclicGraph<T> graph)
public void writeOutput(PrintStream printStream) throws IOException
IOException
public void writeOutput(ThriftProtocol thriftProtocol, PrintStream printStream) throws IOException
thriftProtocol
- specific thrift protocolIOException