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 void
apply
(org.apache.thrift.protocol.TProtocol protocol, Consumer<RDF_StreamRow> action) Deprecated.UseThriftRDF.apply(TProtocol,Consumer)
insteadstatic void
dump
(OutputStream out, InputStream in) Deprecated.UseThriftRDF.dump(OutputStream,InputStream)
insteadstatic void
fileToStream
(String filename, StreamRDF dest) Deprecated.UseThriftRDF.fileToStream(String,StreamRDF)
insteadstatic void
inputStreamToStream
(InputStream in, StreamRDF dest) Deprecated.static void
protocolToStream
(org.apache.thrift.protocol.TProtocol protocol, StreamRDF dest) Deprecated.UseThriftRDF.protocolToStream(TProtocol,StreamRDF)
insteadstatic ResultSet
Deprecated.UseThriftRDF.readResultSet(InputStream)
insteadstatic ResultSet
readResultSet
(org.apache.thrift.protocol.TProtocol protocol) Deprecated.UseThriftRDF.readResultSet(InputStream)
insteadstatic StreamRDF
streamToFile
(String filename) Deprecated.UseThriftRDF.streamToFile(String)
insteadstatic StreamRDF
streamToFile
(String filename, boolean withValues) Deprecated.UseThriftRDF.streamToFile(String,boolean)
insteadstatic StreamRDF
Deprecated.UseThriftRDF.streamToOutputStream(OutputStream)
insteadstatic StreamRDF
streamToOutputStream
(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
(OutputStream out, ResultSet resultSet) Deprecated.UseThriftRDF.writeResultSet(OutputStream,ResultSet)
insteadstatic void
writeResultSet
(OutputStream out, ResultSet resultSet, boolean withValues) Deprecated.static void
writeResultSet
(org.apache.thrift.protocol.TProtocol protocol, ResultSet resultSet) Deprecated.UseThriftRDF.writeRowSet(TProtocol,RowSet)
insteadstatic void
writeResultSet
(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 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.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.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.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.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.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