com.alexkasko.unsafe.offheapstruct
private static class OffHeapStructSorterByReference.ReferenceIterable extends Object implements OffHeapDisposableIterable<byte[]>
Modifier and Type | Field and Description |
---|---|
private OffHeapStructCollection |
data |
private OffHeapLongArray |
index |
Modifier | Constructor and Description |
---|---|
private |
OffHeapStructSorterByReference.ReferenceIterable(OffHeapStructCollection data,
OffHeapLongArray index)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Frees allocated memory, may be called multiple times from any thread
|
OffHeapDisposableIterator<byte[]> |
iterator() |
private final OffHeapStructCollection data
private final OffHeapLongArray index
private OffHeapStructSorterByReference.ReferenceIterable(OffHeapStructCollection data, OffHeapLongArray index)
data
- data to iterate overindex
- sorted indexpublic OffHeapDisposableIterator<byte[]> iterator()
iterator
in interface OffHeapDisposableIterable<byte[]>
iterator
in interface Iterable<byte[]>
public void free()
free
in interface OffHeapDisposable
Copyright © 2014. All Rights Reserved.