Class TRDF


public class TRDF extends Object
Support operations for RDF Thrift
  • Field Details

    • ANY

      public static final RDF_ANY ANY
    • tANY

      public static final RDF_Term tANY
      The Thrift RDF Term 'ANY'
    • UNDEF

      public static final RDF_UNDEF UNDEF
      The Thrift RDF Term 'UNDEF'
    • tUNDEF

      public static final RDF_Term tUNDEF
  • Constructor Details

    • TRDF

      public TRDF()
  • Method Details

    • ensureBuffered

      public static InputStream ensureBuffered(InputStream input)
    • ensureBuffered

      public static OutputStream ensureBuffered(OutputStream output)
    • protocol

      public static org.apache.thrift.protocol.TProtocol protocol(InputStream in)
      Create Thrift protocol for the InputStream.
      in - InputStream
    • protocol

      public static org.apache.thrift.protocol.TProtocol protocol(OutputStream out)
      Create Thrift protocol for the OutputStream. The caller must call flush(TProtocol) which will flush the underlying (internally buffered) output stream.
      out - OutputStream
    • protocol

      public static org.apache.thrift.protocol.TProtocol protocol(String filename)
      Decode the contents of the input stream and send to the StreamRDF.
      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 to RiotException
    • flush

      public static void flush(org.apache.thrift.transport.TTransport transport)
      Flush a TTransport; exceptions converted to RiotException
    • visit

      public static void visit(RDF_StreamRow row, VisitorStreamRowTRDF visitor)
    • exception

      public static void exception(org.apache.thrift.TException ex)