API Documentation: Class Index64BitUtils
| Name | Index64BitUtils |
| Package | com.mckoi.data |
Various Index64Bit static utility functions.
Constructors Summary
| Index64BitUtils() |
Methods Summary
| static | void | pointerIntersection(Index64Bit index1, Index64Bit index2) | |
| static | Index64Bit | emptyImmutableIndex() | |
| static | Index64Bit | singleImmutableIndex(long val) | |
| static | Index64Bit | arrayBackedIndex(int max_size) |
Constructor Details
Index64BitUtils()
Method Details
void pointerIntersection(Index64Bit index1, Index64Bit index2)
Performs a pointer intersection of the first index with the second index and subtracts any values not in the second index from the first index. Assumes that both 'index1' and 'index2' are sorted by their key values. When the method returns, 'index1' will be less the pointers that are not in 'index2'. 'index1' may be modified by this function, and 'index2' will never be modified.
Index64Bit emptyImmutableIndex()
Returns an immutable Index64Bit object that is empty.
Index64Bit singleImmutableIndex(long val)
Returns an immutable Index64Bit object containing a single value.
Index64Bit arrayBackedIndex(int max_size)
Returns a mutable Index64Bit object backed by an array on the heap that can store a maximum of n values. Attempting to store more than n values in the structure will generate an error.
The returned Index64Bit uses 'System.arraycopy' to implement the shift method when inserting data into the list, making it inappropriate for use in large sets.
