| Package | Description |
|---|---|
| net.openhft.chronicle.bytes |
The Chronicle Bytes package provides low-level memory access wrappers with functionalities
akin to Java NIO's ByteBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MappedFile |
MappedBytes.mappedFile()
Retrieves the mapped file.
|
static @NotNull MappedFile |
MappedFile.mappedFile(@NotNull File file,
long chunkSize)
Creates and returns a MappedFile instance for the specified file with the given chunk size.
|
static @NotNull MappedFile |
MappedFile.mappedFile(@NotNull File file,
long chunkSize,
long overlapSize)
Creates and returns a MappedFile instance for the specified file with the given chunk size and overlap size.
|
static @NotNull MappedFile |
MappedFile.mappedFile(@NotNull File file,
long chunkSize,
long overlapSize,
boolean readOnly)
Creates and returns a MappedFile instance for the specified file with the given chunk size, overlap size, and read-only mode.
|
static @NotNull MappedFile |
MappedFile.mappedFile(@NotNull File file,
long capacity,
long chunkSize,
long overlapSize,
boolean readOnly)
Creates and returns a MappedFile instance with the specified file, capacity, chunk size,
overlap size, and read-only mode.
|
static @NotNull MappedFile |
MappedFile.mappedFile(@NotNull String filename,
long chunkSize)
Creates and returns a MappedFile instance for the specified file with the given chunk size.
|
static @NotNull MappedFile |
MappedFile.mappedFile(@NotNull String filename,
long chunkSize,
long overlapSize)
Creates and returns a MappedFile instance for the specified file with the given chunk size and overlap size.
|
static @NotNull MappedFile |
MappedFile.of(@NotNull File file,
long chunkSize,
long overlapSize,
boolean readOnly) |
static @NotNull MappedFile |
MappedFile.of(@NotNull File file,
long chunkSize,
long overlapSize,
int pageSize,
boolean readOnly)
Creates and returns a MappedFile instance with the specified file, chunk size, overlap size, pageSize
and read-only mode.
|
static @NotNull MappedFile |
MappedFile.ofSingle(@NotNull File file,
long capacity,
boolean readOnly)
Creates and returns a MappedFile instance representing a single chunk of the specified file.
|
static @NotNull MappedFile |
MappedFile.readOnly(@NotNull File file)
Creates and returns a read-only MappedFile instance for the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
static MappedBytesStore |
MappedBytesStore.create(net.openhft.chronicle.core.io.ReferenceOwner owner,
MappedFile mappedFile,
long start,
long address,
long capacity,
long safeCapacity,
int pageSize)
Creates a new MappedBytesStore with the given parameters.
|
@NotNull MappedBytesStore |
MappedBytesStoreFactory.create(net.openhft.chronicle.core.io.ReferenceOwner owner,
MappedFile mappedFile,
long start,
long address,
long capacity,
long safeCapacity,
int pageSize)
Creates a
MappedBytesStore instance with the given parameters. |
static @NotNull MappedBytes |
MappedBytes.mappedBytes(@NotNull MappedFile rw)
Create a MappedBytes for a MappedFile
|
| Constructor and Description |
|---|
MappedBytesStore(net.openhft.chronicle.core.io.ReferenceOwner owner,
MappedFile mappedFile,
long start,
long address,
long capacity,
long safeCapacity,
int pageSize)
Creates a new MappedBytesStore with the given parameters.
|
Copyright © 2024. All rights reserved.