Class HeapStore.HeapAreaElement

  • Enclosing class:
    HeapStore

    private static class HeapStore.HeapAreaElement
    extends java.lang.Object
    An area allocated from the heap store represented by a volatile byte[] array.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] heap_area
      A byte[] array that represents the volatile heap area.
      private long heap_id
      The id of this heap area (used as the hash key).
      (package private) HeapStore.HeapAreaElement next_hash_element
      The pointer to the next HeapAreaElement in this hash key.
    • Constructor Summary

      Constructors 
      Constructor Description
      HeapAreaElement​(long heap_id, int area_size)
      Constructs the HeapAreaElement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) AreaWriter getAreaWriter()
      Returns a new AreaWriter object for this element.
      (package private) long getID()
      Returns the heap id for this element.
      (package private) java.io.InputStream getInputStream()
      Returns a new InputStream that is used to read from the area.
      (package private) MutableArea getMutableArea()
      Returns a new MutableArea object for this element.
      • Methods inherited from class java.lang.Object

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

      • heap_id

        private final long heap_id
        The id of this heap area (used as the hash key).
      • heap_area

        private final byte[] heap_area
        A byte[] array that represents the volatile heap area.
    • Constructor Detail

      • HeapAreaElement

        HeapAreaElement​(long heap_id,
                        int area_size)
        Constructs the HeapAreaElement.
    • Method Detail

      • getID

        long getID()
        Returns the heap id for this element.
      • getAreaWriter

        AreaWriter getAreaWriter()
        Returns a new AreaWriter object for this element.
      • getMutableArea

        MutableArea getMutableArea()
        Returns a new MutableArea object for this element.
      • getInputStream

        java.io.InputStream getInputStream()
        Returns a new InputStream that is used to read from the area.