Package org.rostore.v2.catalog
Class CatalogBlockIndices
java.lang.Object
org.rostore.v2.catalog.CatalogBlockIndices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long startIndex, long stopIndex) voidadd(CatalogBlockIndices catalogBlockIndices) voidclear()booleancontains(long blockIndex) extract(int length) longgetFirst()long[]getGroup(int groupIndex) intintbooleanisEmpty()iterator()remove(long startIndex, long stopIndex) remove(CatalogBlockIndices catalogBlockIndices) Removes what is included in this catalogtoString()
-
Constructor Details
-
CatalogBlockIndices
public CatalogBlockIndices()
-
-
Method Details
-
toString
-
clear
public void clear() -
add
public void add(long startIndex, long stopIndex) -
remove
-
remove
Removes what is included in this catalog- Parameters:
catalogBlockIndices-- Returns:
- what were not removed
-
add
-
extract
-
getLength
public int getLength() -
isEmpty
public boolean isEmpty() -
iterator
-
getFirst
public long getFirst() -
getGroup
public long[] getGroup(int groupIndex) -
getGroupNumber
public int getGroupNumber() -
contains
public boolean contains(long blockIndex)
-