Class RandomAccessDataFile

    • Field Detail

      • totalReads

        public static int totalReads
      • totalReadBytes

        public static long totalReadBytes
      • seekcount

        public static int seekcount
      • totalWrites

        public static int totalWrites
      • totalWriteBytes

        public static long totalWriteBytes
    • Method Detail

      • put

        public void put​(long addr,
                        byte[] bytes,
                        int off,
                        int len)
      • get

        public void get​(long addr,
                        byte[] bytes,
                        int off,
                        int len)
      • putInt

        public void putInt​(long addr,
                           int value)
      • getInt

        public int getInt​(long addr)
      • putLong

        public void putLong​(long addr,
                            long value)
      • putByte

        public void putByte​(long addr,
                            byte b)
      • getByte

        public byte getByte​(long addr)
      • getLong

        public long getLong​(long addr)
      • getUTF

        public String getUTF​(long addr)
      • putUTF

        public void putUTF​(long addr,
                           String value)
      • length

        public long length()
      • physicalLength

        public long physicalLength()
      • dispose

        public void dispose()
      • force

        public void force()
        Specified by:
        force in interface Forceable
      • flushSomePages

        public void flushSomePages​(int maxPagesToFlush)
      • isDirty

        public boolean isDirty()
        Specified by:
        isDirty in interface Forceable
      • loadPage

        public void loadPage​(Page page)
      • flushPage

        public void flushPage​(Page page,
                              int start,
                              int end)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object