Class 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 to RiotException
      static void flush​(org.apache.thrift.transport.TTransport transport)
      Flush a TTransport; exceptions converted to RiotException
      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 the StreamRDF.
      static org.apache.thrift.protocol.TProtocol protocol​(org.apache.thrift.transport.TTransport transport)  
      static void visit​(RDF_StreamRow row, VisitorStreamRowTRDF visitor)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • TRDF

        public TRDF()
    • 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 call flush(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 the StreamRDF.
        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 to RiotException
      • flush

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

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