Class IOFactory
- java.lang.Object
-
- org.apache.hugegraph.computer.core.io.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.BytesInputcreateBytesInput(byte[] buffer)static org.apache.hugegraph.computer.core.io.BytesInputcreateBytesInput(byte[] buffer, int limit)static org.apache.hugegraph.computer.core.io.BytesInputcreateBytesInput(byte[] buffer, int position, int limit)static org.apache.hugegraph.computer.core.io.BytesOutputcreateBytesOutput(int size)static org.apache.hugegraph.computer.core.io.RandomAccessInputcreateFileInput(java.io.File file)static org.apache.hugegraph.computer.core.io.RandomAccessOutputcreateFileOutput(java.io.File file)static org.apache.hugegraph.computer.core.io.GraphOutputcreateGraphOutput(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.RandomAccessInputcreateStreamInput(java.io.InputStream stream)static org.apache.hugegraph.computer.core.io.RandomAccessOutputcreateStreamOutput(java.io.OutputStream stream)
-
-
-
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)
-
-