Class CatalogBlockIndices

java.lang.Object
org.rostore.v2.catalog.CatalogBlockIndices

public class CatalogBlockIndices extends Object
  • Constructor Details

    • CatalogBlockIndices

      public CatalogBlockIndices()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clear

      public void clear()
    • add

      public void add(long startIndex, long stopIndex)
    • remove

      public CatalogBlockIndices remove(long startIndex, long stopIndex)
    • remove

      public CatalogBlockIndices remove(CatalogBlockIndices catalogBlockIndices)
      Removes what is included in this catalog
      Parameters:
      catalogBlockIndices -
      Returns:
      what were not removed
    • add

      public void add(CatalogBlockIndices catalogBlockIndices)
    • extract

      public CatalogBlockIndices extract(int length)
    • getLength

      public int getLength()
    • isEmpty

      public boolean isEmpty()
    • iterator

      public CatalogBlockIndicesIterator iterator()
    • getFirst

      public long getFirst()
    • getGroup

      public long[] getGroup(int groupIndex)
    • getGroupNumber

      public int getGroupNumber()
    • contains

      public boolean contains(long blockIndex)