get(), set(),
add() and increment() operations on the logical contents of the array.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private AbstractPackedArrayContext | |
| private long | |
| pack-priv static final int | |
| private static final int | NUMBER_OF_SETS
An |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(final int
the virtual index of the value to be added to index, final long the value to add value)Add to a value at a virtual index in the array |
| public void | add(final AbstractPackedLongArray
The to add to this array other)Add the contents of the other array to this one |
| public void | |
| pack-priv abstract void | |
| public abstract AbstractPackedLongArray | Returns: A distinct copy of this array.Create a copy of this array, complete with data and everything. |
| pack-priv abstract long | |
| pack-priv abstract void | |
| public boolean | Returns: True if this array are equivalent with the other.the other array to compare to other)Overrides java. |
| public long | Returns: the array value at the virtual index giventhe virtual array index index)Get value at virtual index in the array |
| pack-priv AbstractPackedArrayContext | |
| public long | Returns: the end time stamp [optionally] stored with this arrayget the end time stamp [optionally] stored with this array |
| public int | Returns: the current physical length (in longs) of the array's current backing storageGet the current physical length (in longs) of the array's backing storage |
| public long | Returns: the start time stamp [optionally] stored with this arrayget the start time stamp [optionally] stored with this array |
| public int | |
| public void | increment(final int
virtual index of value to increment index)Increment value at a virrual index in the array |
| public Iterator | Returns: an Iterator over all values in the arrayImplements java. |
| public int | |
| public Iterable | Returns: an Iterator over all non-Zero values in the arrayAn Iterator over all non-Zero values in the array |
| private int | |
| pack-priv abstract void | |
| public void | set(final int
the virtual index of the value to set index, final long the value to set value)Set the value at a virtual index in the array |
| pack-priv void | |
| public void | setEndTimeStamp(final long
the value to set the time stamp to, [by convention] in msec since the epoch. timeStampMsec)Set the end time stamp value associated with this array to a given value. |
| public void | setStartTimeStamp(final long
the value to set the time stamp to, [by convention] in msec since the epoch. timeStampMsec)Set the start time stamp value associated with this array to a given value. |
| public abstract void | |
| public String |
| arrayContext | back to summary |
|---|---|
| private AbstractPackedArrayContext arrayContext | |
| endTimeStampMsec | back to summary |
|---|---|
| private long endTimeStampMsec | |
| NUMBER_OF_NON_ZEROS_TO_HASH | back to summary |
|---|---|
| pack-priv static final int NUMBER_OF_NON_ZEROS_TO_HASH | |
| NUMBER_OF_SETS | back to summary |
|---|---|
| private static final int NUMBER_OF_SETS An | |
| startTimeStampMsec | back to summary |
|---|---|
| private long startTimeStampMsec | |
| AbstractPackedLongArray | back to summary |
|---|---|
| pack-priv AbstractPackedLongArray() | |
| add | back to summary |
|---|---|
| public void add(final int index, final long value) Add to a value at a virtual index in the array
| |
| add | back to summary |
|---|---|
| public void add(final AbstractPackedLongArray other) Add the contents of the other array to this one
| |
| clear | back to summary |
|---|---|
| public void clear() Clear the array contents | |
| clearContents | back to summary |
|---|---|
| pack-priv abstract void clearContents() | |
| copy | back to summary |
|---|---|
| public abstract AbstractPackedLongArray copy() Create a copy of this array, complete with data and everything.
| |
| criticalSectionEnter | back to summary |
|---|---|
| pack-priv abstract long criticalSectionEnter() | |
| criticalSectionExit | back to summary |
|---|---|
| pack-priv abstract void criticalSectionExit(long criticalValueAtEnter) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object other) Overrides java. Determine if this array is equivalent to another. | |
| get | back to summary |
|---|---|
| public long get(final int index) Get value at virtual index in the array
| |
| getArrayContext | back to summary |
|---|---|
| pack-priv AbstractPackedArrayContext getArrayContext() | |
| getEndTimeStamp | back to summary |
|---|---|
| public long getEndTimeStamp() get the end time stamp [optionally] stored with this array
| |
| getPhysicalLength | back to summary |
|---|---|
| public int getPhysicalLength() Get the current physical length (in longs) of the array's backing storage
| |
| getStartTimeStamp | back to summary |
|---|---|
| public long getStartTimeStamp() get the start time stamp [optionally] stored with this array
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| increment | back to summary |
|---|---|
| public void increment(final int index) Increment value at a virrual index in the array
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. An Iterator over all values in the array | |
| length | back to summary |
|---|---|
| public int length() Get the (virtual) length of the array
| |
| nonZeroValues | back to summary |
|---|---|
| public Iterable An Iterator over all non-Zero values in the array
| |
| oneAtATimeHashStep | back to summary |
|---|---|
| private int oneAtATimeHashStep(final int incomingHash, final int v) | |
| resizeStorageArray | back to summary |
|---|---|
| pack-priv abstract void resizeStorageArray(int newPhysicalLengthInLongs) | |
| set | back to summary |
|---|---|
| public void set(final int index, final long value) Set the value at a virtual index in the array
| |
| setArrayContext | back to summary |
|---|---|
| pack-priv void setArrayContext(AbstractPackedArrayContext newArrayContext) | |
| setEndTimeStamp | back to summary |
|---|---|
| public void setEndTimeStamp(final long timeStampMsec) Set the end time stamp value associated with this array to a given value.
| |
| setStartTimeStamp | back to summary |
|---|---|
| public void setStartTimeStamp(final long timeStampMsec) Set the start time stamp value associated with this array to a given value.
| |
| setVirtualLength | back to summary |
|---|---|
| public abstract void setVirtualLength(final int newVirtualArrayLength) Set a new virtual length for the array.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Long | |
| public void | remove()
Overrides default java. |
| nextVirtrualIndex | back to summary |
|---|---|
| pack-priv int nextVirtrualIndex | |
| AllValuesIterator | back to summary |
|---|---|
| pack-priv AllValuesIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Long next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |