Class ArrayClusteringBoundary

    • Constructor Detail

      • ArrayClusteringBoundary

        public ArrayClusteringBoundary​(ClusteringPrefix.Kind kind,
                                       byte[][] values)
    • Method Detail

      • 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.
      • invert

        public ClusteringBoundary<byte[]> invert()
        Description copied from interface: ClusteringBoundOrBoundary
        Returns the inverse of the current bound.

        This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).

        Specified by:
        invert in interface ClusteringBoundary<byte[]>
        Specified by:
        invert in interface ClusteringBoundOrBoundary<byte[]>
        Returns:
        the invert of this bound. For instance, if this bound is an exlusive start, this return an inclusive end with the same values.