Class IOFactory


  • public final class IOFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IOFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.hugegraph.computer.core.io.BytesInput createBytesInput​(byte[] buffer)  
      static org.apache.hugegraph.computer.core.io.BytesInput createBytesInput​(byte[] buffer, int limit)  
      static org.apache.hugegraph.computer.core.io.BytesInput createBytesInput​(byte[] buffer, int position, int limit)  
      static org.apache.hugegraph.computer.core.io.BytesOutput createBytesOutput​(int size)  
      static org.apache.hugegraph.computer.core.io.RandomAccessInput createFileInput​(java.io.File file)  
      static org.apache.hugegraph.computer.core.io.RandomAccessOutput createFileOutput​(java.io.File file)  
      static org.apache.hugegraph.computer.core.io.GraphOutput createGraphOutput​(org.apache.hugegraph.computer.core.common.ComputerContext context, OutputFormat format, org.apache.hugegraph.computer.core.io.RandomAccessOutput out)  
      static org.apache.hugegraph.computer.core.io.RandomAccessInput createStreamInput​(java.io.InputStream stream)  
      static org.apache.hugegraph.computer.core.io.RandomAccessOutput createStreamOutput​(java.io.OutputStream stream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IOFactory

        public IOFactory()
    • Method Detail

      • createBytesOutput

        public static org.apache.hugegraph.computer.core.io.BytesOutput createBytesOutput​(int size)
      • createBytesInput

        public static org.apache.hugegraph.computer.core.io.BytesInput createBytesInput​(byte[] buffer)
      • createBytesInput

        public static org.apache.hugegraph.computer.core.io.BytesInput createBytesInput​(byte[] buffer,
                                                                                        int limit)
      • createBytesInput

        public static org.apache.hugegraph.computer.core.io.BytesInput createBytesInput​(byte[] buffer,
                                                                                        int position,
                                                                                        int limit)
      • createFileOutput

        public static org.apache.hugegraph.computer.core.io.RandomAccessOutput createFileOutput​(java.io.File file)
                                                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createFileInput

        public static org.apache.hugegraph.computer.core.io.RandomAccessInput createFileInput​(java.io.File file)
                                                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • createStreamOutput

        public static org.apache.hugegraph.computer.core.io.RandomAccessOutput createStreamOutput​(java.io.OutputStream stream)
                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • createStreamInput

        public static org.apache.hugegraph.computer.core.io.RandomAccessInput createStreamInput​(java.io.InputStream stream)
                                                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createGraphOutput

        public static org.apache.hugegraph.computer.core.io.GraphOutput createGraphOutput​(org.apache.hugegraph.computer.core.common.ComputerContext context,
                                                                                          OutputFormat format,
                                                                                          org.apache.hugegraph.computer.core.io.RandomAccessOutput out)