Class ArrayClustering

All Implemented Interfaces:
IMeasurableMemory, Clusterable<byte[]>, Clustering<byte[]>, ClusteringPrefix<byte[]>

public class ArrayClustering extends AbstractArrayClusteringPrefix implements Clustering<byte[]>
  • Field Details

    • EMPTY_SIZE

      public static final long EMPTY_SIZE
  • Constructor Details

    • ArrayClustering

      public ArrayClustering(byte[]... values)
  • Method Details

    • unsharedHeapSize

      public long unsharedHeapSize()
      Specified by:
      unsharedHeapSize in interface IMeasurableMemory
      Returns:
      the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.
    • unsharedHeapSizeExcludingData

      public long unsharedHeapSizeExcludingData()
      Specified by:
      unsharedHeapSizeExcludingData in interface Clustering<byte[]>
    • make

      public static ArrayClustering make(byte[]... values)