Package org.HdrHistogram.packedarray
Class PackedLongArray
java.lang.Object
org.HdrHistogram.packedarray.AbstractPackedLongArray
org.HdrHistogram.packedarray.PackedLongArray
- All Implemented Interfaces:
Serializable,Iterable<Long>
- Direct Known Subclasses:
ConcurrentPackedLongArray
A Packed array of signed 64 bit values, and supports
get(), set(),
add() and increment() operations on the logical contents of the array.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPackedLongArray(int virtualLength) PackedLongArray(int virtualLength, int initialPhysicalLength) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a copy of this array, complete with data and everything.voidsetVirtualLength(int newVirtualArrayLength) Set a new virtual length for the array.Methods inherited from class org.HdrHistogram.packedarray.AbstractPackedLongArray
add, add, clear, equals, get, getEndTimeStamp, getPhysicalLength, getStartTimeStamp, hashCode, increment, iterator, length, nonZeroValues, set, setEndTimeStamp, setStartTimeStamp, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PackedLongArray
public PackedLongArray(int virtualLength) -
PackedLongArray
public PackedLongArray(int virtualLength, int initialPhysicalLength)
-
-
Method Details
-
setVirtualLength
public void setVirtualLength(int newVirtualArrayLength) Description copied from class:AbstractPackedLongArraySet a new virtual length for the array.- Specified by:
setVirtualLengthin classAbstractPackedLongArray- Parameters:
newVirtualArrayLength- the
-
copy
Description copied from class:AbstractPackedLongArrayCreate a copy of this array, complete with data and everything.- Specified by:
copyin classAbstractPackedLongArray- Returns:
- A distinct copy of this array.
-