public class LargeLongArray
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LargeLongArray.Builder
The long array builder.
|
static interface |
LargeLongArray.SanityArrayCounter
record when a new array is created.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SEGMENT_SIZE
The default number of longs per segment.
|
Modifier and Type | Method and Description |
---|---|
void |
append(long value) |
static LargeLongArray.Builder |
factory() |
static LargeLongArray.Builder |
factory(long[] rows)
The factory to create a new Large Long Array.
|
static LargeLongArray.Builder |
factory(long[][] data)
The factory to create a new Large Long Array.
|
long |
get(long pos)
Get the value at this position.
|
boolean |
remove(long value)
remove a value
|
long[][] |
repack()
Repack this array.
|
int |
replace(long from,
long to) |
long |
set(long pos,
long value)
Set the value at this position.
|
long |
size()
The size of this long array.
|
long[][] |
sort()
Sort the passed in data.
|
public static final int DEFAULT_SEGMENT_SIZE
@CheckReturnValue @Nonnull public static LargeLongArray.Builder factory(@Nonnull long[][] data)
data
- the data.@CheckReturnValue @Nonnull public static LargeLongArray.Builder factory(@Nullable long[] rows)
rows
- the data.@CheckReturnValue @Nonnull public static LargeLongArray.Builder factory()
@Nonnull @CheckReturnValue public long[][] sort()
public void append(long value)
public boolean remove(long value)
value
- to remove@CheckReturnValue @Nonnegative public long size()
@Nonnull @CheckReturnValue public long[][] repack()
@CheckReturnValue public long get(@Nonnegative long pos)
pos
- the positionpublic int replace(long from, long to)
public long set(@Nonnegative long pos, long value)
pos
- the positionvalue
- the value to setstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.