Package | Description |
---|---|
net.openhft.chronicle.bytes |
The Chronicle Bytes package provides low-level memory access wrappers with functionalities
akin to Java NIO's ByteBuffer.
|
net.openhft.chronicle.bytes.internal |
This package and any and all sub-packages contains strictly internal classes for this Chronicle library.
|
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)
Creates and returns a MappedFile instance with the specified file, chunk size, overlap size,
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)
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)
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)
Creates a new MappedBytesStore with the given parameters.
|
Modifier and Type | Class and Description |
---|---|
class |
ChunkedMappedFile
A memory mapped files which can be randomly accessed in chunks.
|
class |
SingleMappedFile
A memory mapped files which can be randomly accessed in a single chunk.
|
Modifier and Type | Field and Description |
---|---|
protected MappedFile |
CommonMappedBytes.mappedFile |
Modifier and Type | Method and Description |
---|---|
@NotNull MappedFile |
CommonMappedBytes.mappedFile() |
Constructor and Description |
---|
ChunkedMappedBytes(@NotNull MappedFile mappedFile) |
ChunkedMappedBytes(@NotNull MappedFile mappedFile,
String name) |
CommonMappedBytes(@NotNull MappedFile mappedFile) |
CommonMappedBytes(@NotNull MappedFile mappedFile,
String name) |
SingleMappedBytes(@NotNull MappedFile mappedFile)
Constructs a SingleMappedBytes object wrapping the memory mapped to the specified file.
|
SingleMappedBytes(@NotNull MappedFile mappedFile,
String name)
Constructs a SingleMappedBytes object wrapping the memory mapped to the specified file and associates it with the specified name.
|
Copyright © 2023. All rights reserved.