Package org.rostore.v2.catalog
Class CatalogBlockIndices
java.lang.Object
org.rostore.v2.catalog.CatalogBlockIndices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long startIndex, long stopIndex) void
add
(CatalogBlockIndices catalogBlockIndices) void
clear()
boolean
contains
(long blockIndex) extract
(int length) long
getFirst()
long[]
getGroup
(int groupIndex) int
int
boolean
isEmpty()
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)
-