Package org.apache.jena.riot.thrift
Class BinRDF
java.lang.Object
org.apache.jena.riot.thrift.BinRDF
Deprecated.
Operations on binary RDF encoding with Apache Thrift.
See also
ThriftConvert, for specific functions on binary RDF.
Encoding use Protobuf is available in ProtobufRDF.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(org.apache.thrift.protocol.TProtocol protocol, Consumer<RDF_StreamRow> action) Deprecated.UseThriftRDF.apply(TProtocol,Consumer)insteadstatic voiddump(OutputStream out, InputStream in) Deprecated.UseThriftRDF.dump(OutputStream,InputStream)insteadstatic voidfileToStream(String filename, StreamRDF dest) Deprecated.UseThriftRDF.fileToStream(String,StreamRDF)insteadstatic voidinputStreamToStream(InputStream in, StreamRDF dest) Deprecated.static voidprotocolToStream(org.apache.thrift.protocol.TProtocol protocol, StreamRDF dest) Deprecated.UseThriftRDF.protocolToStream(TProtocol,StreamRDF)insteadstatic ResultSetDeprecated.UseThriftRDF.readResultSet(InputStream)insteadstatic ResultSetreadResultSet(org.apache.thrift.protocol.TProtocol protocol) Deprecated.UseThriftRDF.readResultSet(InputStream)insteadstatic StreamRDFstreamToFile(String filename) Deprecated.UseThriftRDF.streamToFile(String)insteadstatic StreamRDFstreamToFile(String filename, boolean withValues) Deprecated.UseThriftRDF.streamToFile(String,boolean)insteadstatic StreamRDFDeprecated.UseThriftRDF.streamToOutputStream(OutputStream)insteadstatic StreamRDFstreamToOutputStream(OutputStream out, boolean withValues) Deprecated.static StreamRDFstreamToTProtocol(org.apache.thrift.protocol.TProtocol protocol) Deprecated.UseThriftRDF.streamToTProtocol(TProtocol)insteadstatic StreamRDFstreamToTProtocol(org.apache.thrift.protocol.TProtocol protocol, boolean withValues) Deprecated.UseThriftRDF.streamToTProtocol(TProtocol,boolean)insteadstatic voidwriteResultSet(OutputStream out, ResultSet resultSet) Deprecated.UseThriftRDF.writeResultSet(OutputStream,ResultSet)insteadstatic voidwriteResultSet(OutputStream out, ResultSet resultSet, boolean withValues) Deprecated.static voidwriteResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet) Deprecated.UseThriftRDF.writeRowSet(TProtocol,RowSet)insteadstatic voidwriteResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet, boolean encodeValues) Deprecated.UseThriftRDF.writeRowSet(TProtocol,RowSet,boolean)instead
-
Constructor Details
-
BinRDF
public BinRDF()Deprecated.
-
-
Method Details
-
streamToFile
Deprecated.UseThriftRDF.streamToFile(String)insteadCreate anStreamRDFfor output. A filename ending.gzwill have a gzip compressor added to the output path. A filename of "-" isSystem.out. The file is closed whenStreamRDF.finish()is called unless it isSystem.out. CallStreamRDF.start()...StreamRDF.finish().- Parameters:
filename- The file- Returns:
- StreamRDF A stream to send to.
-
streamToFile
Deprecated.UseThriftRDF.streamToFile(String,boolean)insteadCreate anStreamRDFfor output. A filenames ending.gzor.bz2will have the respective compressor added to the output path. A filename of "-" isSystem.out. The file is closed whenStreamRDF.finish()is called unless it isSystem.out. CallStreamRDF.start()...StreamRDF.finish().- Parameters:
filename- The filewithValues- - whether to encode numeric values as values.- Returns:
- StreamRDF A stream to send to.
-
streamToOutputStream
Deprecated.UseThriftRDF.streamToOutputStream(OutputStream)insteadCreate anStreamRDFfor output. TheOutputStreamis closed whenStreamRDF.finish()is called unless it isSystem.out. CallStreamRDF.start()...StreamRDF.finish().- Parameters:
out- OutputStream- Returns:
- StreamRDF A stream to send to.
-
streamToOutputStream
Deprecated.Create anStreamRDFfor output. TheOutputStreamis closed whenStreamRDF.finish()is called unless it isSystem.out. CallStreamRDF.start()...StreamRDF.finish().- Parameters:
out- OutputStreamwithValues- - whether to encode numeric values as values.- Returns:
- StreamRDF A stream to send to.
-
streamToTProtocol
@Deprecated public static StreamRDF streamToTProtocol(org.apache.thrift.protocol.TProtocol protocol) Deprecated.UseThriftRDF.streamToTProtocol(TProtocol)insteadCreate anStreamRDFfor output. TheOutputStreamis closed whenStreamRDF.finish()is called unless it isSystem.out. CallStreamRDF.start()...StreamRDF.finish().- Parameters:
protocol- Output and encoding.- Returns:
- StreamRDF A stream to send to.
-
streamToTProtocol
@Deprecated public static StreamRDF streamToTProtocol(org.apache.thrift.protocol.TProtocol protocol, boolean withValues) Deprecated.UseThriftRDF.streamToTProtocol(TProtocol,boolean)insteadCreate anStreamRDFfor output. TheOutputStreamis closed whenStreamRDF.finish()is called unless it isSystem.out. CallStreamRDF.start()...StreamRDF.finish().- Parameters:
protocol- Output and encoding.withValues- - whether to encode numeric values as values.- Returns:
- StreamRDF A stream to send to.
-
fileToStream
Deprecated.UseThriftRDF.fileToStream(String,StreamRDF)insteadDecode the contents of the file and send to theStreamRDF. A filename ending.gzwill have a gzip decompressor added. A filename of "-" isSystem.in.- Parameters:
filename- The file.dest- Sink
-
inputStreamToStream
Deprecated.Decode the contents of the input stream and send to theStreamRDF.- Parameters:
in- InputStreamdest- StreamRDF
-
protocolToStream
@Deprecated public static void protocolToStream(org.apache.thrift.protocol.TProtocol protocol, StreamRDF dest) Deprecated.UseThriftRDF.protocolToStream(TProtocol,StreamRDF)insteadDecode the contents of the TProtocol and send to theStreamRDF.- Parameters:
protocol- TProtocoldest- Sink
-
apply
@Deprecated public static void apply(org.apache.thrift.protocol.TProtocol protocol, Consumer<RDF_StreamRow> action) Deprecated.UseThriftRDF.apply(TProtocol,Consumer)insteadSend the contents of a RDF-encoded Thrift file to an "action"- Parameters:
protocol- TProtocolaction- Code to act on the row.
-
dump
Deprecated.UseThriftRDF.dump(OutputStream,InputStream)insteadDebug help - print details of a Thrift stream. Destructive on the InputStream.- Parameters:
out- OutputStreamin- InputStream
-
readResultSet
Deprecated.UseThriftRDF.readResultSet(InputStream)instead -
readResultSet
Deprecated.UseThriftRDF.readResultSet(InputStream)instead -
writeResultSet
Deprecated.UseThriftRDF.writeResultSet(OutputStream,ResultSet)instead -
writeResultSet
@Deprecated public static void writeResultSet(OutputStream out, ResultSet resultSet, boolean withValues) Deprecated. -
writeResultSet
@Deprecated public static void writeResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet) Deprecated.UseThriftRDF.writeRowSet(TProtocol,RowSet)instead -
writeResultSet
@Deprecated public static void writeResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet, boolean encodeValues) Deprecated.UseThriftRDF.writeRowSet(TProtocol,RowSet,boolean)instead
-
ThriftRDF