Class 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
      void close()  
      boolean readBoolean()
      Read 1 boolean from file, file is a directory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.IOException
        Description copied from interface: BitsFileReader
        Read 1 boolean from file, file is a directory. Use 1 long store 64 booleans, read from low to high.
        Specified by:
        readBoolean in interface BitsFileReader
        Returns:
        boolean data
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface BitsFileReader
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException