| Package | Description |
|---|---|
| org.apache.jackrabbit.oak.segment | |
| org.apache.jackrabbit.oak.segment.file | |
| org.apache.jackrabbit.oak.segment.memory |
| Modifier and Type | Method and Description |
|---|---|
SegmentId |
RecordId.getSegmentId() |
SegmentId |
Segment.getSegmentId() |
SegmentId |
SegmentStore.newBulkSegmentId()
Create a new
SegmentId for a segment of type "bulk". |
SegmentId |
SegmentTracker.newBulkSegmentId(SegmentIdFactory maker)
Create and track a new segment id for bulk segments.
|
SegmentId |
SegmentStore.newDataSegmentId()
Create a new
SegmentId for a segment of type "data". |
SegmentId |
SegmentTracker.newDataSegmentId(SegmentIdFactory maker)
Create and track a new segment id for data segments.
|
SegmentId |
SegmentStore.newSegmentId(long msb,
long lsb)
Create a
SegmentId represented by the given MSB/LSB pair. |
SegmentId |
SegmentIdFactory.newSegmentId(long msb,
long lsb)
Creates a
SegmentId represented by the given MSB/LSB pair. |
SegmentId |
SegmentTracker.newSegmentId(long msb,
long lsb,
SegmentIdFactory maker)
Get an existing
SegmentId with the given msb and lsb or create a new one if no such id exists with this tracker. |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<SegmentId> |
SegmentBlob.getBulkSegmentIds(org.apache.jackrabbit.oak.api.Blob blob) |
Set<SegmentId> |
SegmentTracker.getReferencedSegmentIds()
Returns all segment identifiers that are currently referenced in memory.
|
| Modifier and Type | Method and Description |
|---|---|
int |
SegmentId.compareTo(SegmentId that) |
boolean |
SegmentStore.containsSegment(SegmentId id)
Checks whether the identified segment exists in this store.
|
Segment |
SegmentCache.getSegment(SegmentId id,
Callable<Segment> loader)
Retrieve an segment from the cache or load it and cache it if not yet in the cache.
|
void |
SegmentNotFoundExceptionListener.notify(SegmentId id,
SegmentNotFoundException snfe)
Notification about
SegmentNotFoundException thrown by the underlying store
in a meaningful way. |
Segment |
SegmentStore.readSegment(SegmentId segmentId)
Reads the identified segment from this store.
|
int |
CacheWeights.SegmentCacheWeigher.weigh(SegmentId id,
Segment segment) |
void |
SegmentStore.writeSegment(SegmentId id,
byte[] bytes,
int offset,
int length)
Writes the given segment to the segment store.
|
| Constructor and Description |
|---|
RecordId(SegmentId segmentId,
int offset) |
Segment(SegmentStore store,
SegmentReader reader,
SegmentId id,
ByteBuffer data) |
SegmentNotFoundException(SegmentId id) |
SegmentNotFoundException(SegmentId id,
Throwable e) |
| Modifier and Type | Method and Description |
|---|---|
SegmentId |
AbstractFileStore.newBulkSegmentId() |
SegmentId |
AbstractFileStore.newDataSegmentId() |
SegmentId |
AbstractFileStore.newSegmentId(long msb,
long lsb) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<SegmentId> |
ReadOnlyFileStore.getSegmentIds() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FileStore.containsSegment(SegmentId id) |
boolean |
ReadOnlyFileStore.containsSegment(SegmentId id) |
Segment |
FileStore.readSegment(SegmentId id) |
Segment |
ReadOnlyFileStore.readSegment(SegmentId id) |
void |
FileStore.writeSegment(SegmentId id,
byte[] buffer,
int offset,
int length) |
void |
ReadOnlyFileStore.writeSegment(SegmentId id,
byte[] data,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
SegmentId |
MemoryStore.newBulkSegmentId() |
SegmentId |
MemoryStore.newDataSegmentId() |
SegmentId |
MemoryStore.newSegmentId(long msb,
long lsb) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MemoryStore.containsSegment(SegmentId id) |
Segment |
MemoryStore.readSegment(SegmentId id) |
void |
MemoryStore.writeSegment(SegmentId id,
byte[] data,
int offset,
int length) |
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.