Class BitsFileReaderImpl
- java.lang.Object
-
- org.apache.hugegraph.computer.core.store.file.seqfile.BitsFileReaderImpl
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,BitsFileReader
public class BitsFileReaderImpl extends java.lang.Object implements BitsFileReader
-
-
Constructor Summary
Constructors Constructor Description BitsFileReaderImpl(org.apache.hugegraph.computer.core.config.Config config, java.io.File file)BitsFileReaderImpl(org.apache.hugegraph.computer.core.config.Config config, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanreadBoolean()Read 1 boolean from file, file is a directory.
-
-
-
Constructor Detail
-
BitsFileReaderImpl
public BitsFileReaderImpl(org.apache.hugegraph.computer.core.config.Config config, java.lang.String path) throws java.io.IOException- Throws:
java.io.IOException
-
BitsFileReaderImpl
public BitsFileReaderImpl(org.apache.hugegraph.computer.core.config.Config config, java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
readBoolean
public boolean readBoolean() throws java.io.IOExceptionDescription copied from interface:BitsFileReaderRead 1 boolean from file, file is a directory. Use 1 long store 64 booleans, read from low to high.- Specified by:
readBooleanin interfaceBitsFileReader- Returns:
- boolean data
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceBitsFileReader- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-