Class CachedBlock

    • Field Detail

      • PER_BLOCK_OVERHEAD

        public static final long PER_BLOCK_OVERHEAD
    • Constructor Detail

      • CachedBlock

        public CachedBlock​(String blockName,
                           byte[] buf,
                           long accessTime,
                           boolean inMemory)
    • Method Detail

      • access

        public void access​(long accessTime)
        Block has been accessed. Update its local access time.
      • heapSize

        public long heapSize()
        Specified by:
        heapSize in interface HeapSize
        Returns:
        Approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getName

        public String getName()
      • getPriority

        public org.apache.accumulo.core.file.blockfile.cache.CachedBlock.BlockPriority getPriority()