Package org.apache.jena.riot.thrift
Class BinRDF
- java.lang.Object
-
- org.apache.jena.riot.thrift.BinRDF
-
@Deprecated public class BinRDF extends java.lang.Object
Deprecated.UseThriftRDF
Operations on binary RDF encoding with Apache Thrift. See alsoThriftConvert
, for specific functions on binary RDF.Encoding use Protobuf is available in
ProtobufRDF
.
-
-
Constructor Summary
Constructors Constructor Description BinRDF()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
apply(org.apache.thrift.protocol.TProtocol protocol, java.util.function.Consumer<RDF_StreamRow> action)
Deprecated.UseThriftRDF.apply(TProtocol,Consumer)
insteadstatic void
dump(java.io.OutputStream out, java.io.InputStream in)
Deprecated.UseThriftRDF.dump(OutputStream,InputStream)
insteadstatic void
fileToStream(java.lang.String filename, StreamRDF dest)
Deprecated.UseThriftRDF.fileToStream(String,StreamRDF)
insteadstatic void
inputStreamToStream(java.io.InputStream in, StreamRDF dest)
Deprecated.static void
protocolToStream(org.apache.thrift.protocol.TProtocol protocol, StreamRDF dest)
Deprecated.UseThriftRDF.protocolToStream(TProtocol,StreamRDF)
insteadstatic ResultSet
readResultSet(java.io.InputStream in)
Deprecated.UseThriftRDF.readResultSet(InputStream)
insteadstatic ResultSet
readResultSet(org.apache.thrift.protocol.TProtocol protocol)
Deprecated.UseThriftRDF.readResultSet(TProtocol)
insteadstatic StreamRDF
streamToFile(java.lang.String filename)
Deprecated.UseThriftRDF.streamToFile(String)
insteadstatic StreamRDF
streamToFile(java.lang.String filename, boolean withValues)
Deprecated.UseThriftRDF.streamToFile(String,boolean)
insteadstatic StreamRDF
streamToOutputStream(java.io.OutputStream out)
Deprecated.UseThriftRDF.streamToOutputStream(OutputStream)
insteadstatic StreamRDF
streamToOutputStream(java.io.OutputStream out, boolean withValues)
Deprecated.static StreamRDF
streamToTProtocol(org.apache.thrift.protocol.TProtocol protocol)
Deprecated.UseThriftRDF.streamToTProtocol(TProtocol)
insteadstatic StreamRDF
streamToTProtocol(org.apache.thrift.protocol.TProtocol protocol, boolean withValues)
Deprecated.UseThriftRDF.streamToTProtocol(TProtocol,boolean)
insteadstatic void
writeResultSet(java.io.OutputStream out, ResultSet resultSet)
Deprecated.UseThriftRDF.writeResultSet(OutputStream,ResultSet)
insteadstatic void
writeResultSet(java.io.OutputStream out, ResultSet resultSet, boolean withValues)
Deprecated.static void
writeResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet)
Deprecated.UseThriftRDF.writeResultSet(TProtocol,ResultSet)
insteadstatic void
writeResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet, boolean encodeValues)
Deprecated.
-
-
-
Method Detail
-
streamToFile
@Deprecated public static StreamRDF streamToFile(java.lang.String filename)
Deprecated.UseThriftRDF.streamToFile(String)
insteadCreate anStreamRDF
for output. A filename ending.gz
will 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 public static StreamRDF streamToFile(java.lang.String filename, boolean withValues)
Deprecated.UseThriftRDF.streamToFile(String,boolean)
insteadCreate anStreamRDF
for output. A filenames ending.gz
or.bz2
will 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 public static StreamRDF streamToOutputStream(java.io.OutputStream out)
Deprecated.UseThriftRDF.streamToOutputStream(OutputStream)
insteadCreate anStreamRDF
for output. TheOutputStream
is 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 public static StreamRDF streamToOutputStream(java.io.OutputStream out, boolean withValues)
Deprecated.Create anStreamRDF
for output. TheOutputStream
is 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 anStreamRDF
for output. TheOutputStream
is 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 anStreamRDF
for output. TheOutputStream
is 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 public static void fileToStream(java.lang.String filename, StreamRDF dest)
Deprecated.UseThriftRDF.fileToStream(String,StreamRDF)
insteadDecode the contents of the file and send to theStreamRDF
. A filename ending.gz
will have a gzip decompressor added. A filename of "-" isSystem.in
.- Parameters:
filename
- The file.dest
- Sink
-
inputStreamToStream
@Deprecated public static void inputStreamToStream(java.io.InputStream in, StreamRDF dest)
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, java.util.function.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 public static void dump(java.io.OutputStream out, java.io.InputStream in)
Deprecated.UseThriftRDF.dump(OutputStream,InputStream)
insteadDebug help - print details of a Thrift stream. Destructive on the InputStream.- Parameters:
out
- OutputStreamin
- InputStream
-
readResultSet
@Deprecated public static ResultSet readResultSet(java.io.InputStream in)
Deprecated.UseThriftRDF.readResultSet(InputStream)
instead
-
readResultSet
@Deprecated public static ResultSet readResultSet(org.apache.thrift.protocol.TProtocol protocol)
Deprecated.UseThriftRDF.readResultSet(TProtocol)
instead
-
writeResultSet
@Deprecated public static void writeResultSet(java.io.OutputStream out, ResultSet resultSet)
Deprecated.UseThriftRDF.writeResultSet(OutputStream,ResultSet)
instead
-
writeResultSet
@Deprecated public static void writeResultSet(java.io.OutputStream out, ResultSet resultSet, boolean withValues)
Deprecated.
-
writeResultSet
@Deprecated public static void writeResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet)
Deprecated.UseThriftRDF.writeResultSet(TProtocol,ResultSet)
instead
-
writeResultSet
@Deprecated public static void writeResultSet(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet, boolean encodeValues)
Deprecated.
-
-