Package org.apache.jena.riot.thrift
Class TRDF
- java.lang.Object
-
- org.apache.jena.riot.thrift.TRDF
-
public class TRDF extends java.lang.Object
Support operations for RDF Thrift
-
-
Constructor Summary
Constructors Constructor Description TRDF()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.InputStream
ensureBuffered(java.io.InputStream input)
static java.io.OutputStream
ensureBuffered(java.io.OutputStream output)
static void
exception(org.apache.thrift.TException ex)
static void
flush(org.apache.thrift.protocol.TProtocol protocol)
Flush a TProtocol; exceptions converted toRiotException
static void
flush(org.apache.thrift.transport.TTransport transport)
Flush a TTransport; exceptions converted toRiotException
static org.apache.thrift.protocol.TProtocol
protocol(java.io.InputStream in)
Create Thrift protocol for the InputStream.static org.apache.thrift.protocol.TProtocol
protocol(java.io.OutputStream out)
Create Thrift protocol for the OutputStream.static org.apache.thrift.protocol.TProtocol
protocol(java.lang.String filename)
Decode the contents of the input stream and send to theStreamRDF
.static org.apache.thrift.protocol.TProtocol
protocol(org.apache.thrift.transport.TTransport transport)
static void
visit(RDF_StreamRow row, VisitorStreamRowTRDF visitor)
-
-
-
Method Detail
-
ensureBuffered
public static java.io.InputStream ensureBuffered(java.io.InputStream input)
-
ensureBuffered
public static java.io.OutputStream ensureBuffered(java.io.OutputStream output)
-
protocol
public static org.apache.thrift.protocol.TProtocol protocol(java.io.InputStream in)
Create Thrift protocol for the InputStream.- Parameters:
in
- InputStream
-
protocol
public static org.apache.thrift.protocol.TProtocol protocol(java.io.OutputStream out)
Create Thrift protocol for the OutputStream. The caller must callflush(TProtocol)
which will flush the underlying (internally buffered) output stream.- Parameters:
out
- OutputStream
-
protocol
public static org.apache.thrift.protocol.TProtocol protocol(java.lang.String filename)
Decode the contents of the input stream and send to theStreamRDF
.- Parameters:
filename
-
-
protocol
public static org.apache.thrift.protocol.TProtocol protocol(org.apache.thrift.transport.TTransport transport)
-
flush
public static void flush(org.apache.thrift.protocol.TProtocol protocol)
Flush a TProtocol; exceptions converted toRiotException
-
flush
public static void flush(org.apache.thrift.transport.TTransport transport)
Flush a TTransport; exceptions converted toRiotException
-
visit
public static void visit(RDF_StreamRow row, VisitorStreamRowTRDF visitor)
-
exception
public static void exception(org.apache.thrift.TException ex)
-
-