| Package | Description |
|---|---|
| net.kuujo.catalyst.buffer |
Provides a low-level
Buffer abstraction backed by on- or off-heap memory, memory mapped
files, or RandomAccessFile. |
| Modifier and Type | Method and Description |
|---|---|
static MappedBuffer |
MappedBuffer.allocate(File file)
Allocates a dynamic capacity mapped buffer in
FileChannel.MapMode.READ_WRITE mode with an initial capacity
of 16MiB and a maximum capacity of Integer.MAX_VALUE. |
static MappedBuffer |
MappedBuffer.allocate(File file,
FileChannel.MapMode mode)
Allocates a dynamic capacity mapped buffer in
FileChannel.MapMode.READ_WRITE mode with an initial capacity
of 16MiB and a maximum capacity of Integer.MAX_VALUE. |
static MappedBuffer |
MappedBuffer.allocate(File file,
FileChannel.MapMode mode,
long capacity)
Allocates a fixed capacity mapped buffer in the given
FileChannel.MapMode. |
static MappedBuffer |
MappedBuffer.allocate(File file,
FileChannel.MapMode mode,
long initialCapacity,
long maxCapacity)
Allocates a mapped buffer.
|
static MappedBuffer |
MappedBuffer.allocate(File file,
long capacity)
Allocates a fixed capacity mapped buffer in
FileChannel.MapMode.READ_WRITE mode. |
static MappedBuffer |
MappedBuffer.allocate(File file,
long initialCapacity,
long maxCapacity)
Allocates a mapped buffer.
|
MappedBuffer |
FileBuffer.map(long size)
Maps a portion of the underlying file into memory in
FileChannel.MapMode.READ_WRITE mode
starting at the current position up to the given count. |
MappedBuffer |
FileBuffer.map(long size,
FileChannel.MapMode mode)
Maps a portion of the underlying file into memory starting at the current position up to the given
count. |
MappedBuffer |
FileBuffer.map(long offset,
long size)
Maps a portion of the underlying file into memory in
FileChannel.MapMode.READ_WRITE mode
starting at the given offset up to the given count. |
MappedBuffer |
FileBuffer.map(long offset,
long size,
FileChannel.MapMode mode)
Maps a portion of the underlying file into memory starting at the given
offset up to the given count. |
Copyright © 2013–2015. All rights reserved.