|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.utils.BigLongArray
public class BigLongArray
A GC friendly long[]. Allocating large arrays (that are not short-lived) generate fragmentation in old-gen space. This breaks such large long array into fixed size pages to avoid that problem.
| Field Summary | |
|---|---|
int |
size
|
| Constructor Summary | |
|---|---|
BigLongArray(int size)
|
|
BigLongArray(int size,
int pageSize)
|
|
| Method Summary | |
|---|---|
long |
get(int idx)
|
void |
set(int idx,
long value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int size
| Constructor Detail |
|---|
public BigLongArray(int size)
public BigLongArray(int size,
int pageSize)
| Method Detail |
|---|
public void set(int idx,
long value)
public long get(int idx)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||