| Package | Description |
|---|---|
| org.apache.jackrabbit.oak.segment | |
| org.apache.jackrabbit.oak.segment.file | |
| org.apache.jackrabbit.oak.segment.memory |
| Modifier and Type | Field and Description |
|---|---|
RecordId |
SegmentParser.BlobInfo.blobId
Id of this record
|
static RecordId[] |
RecordId.EMPTY_ARRAY |
RecordId |
SegmentParser.ListInfo.listId
Id of this record
|
RecordId |
SegmentParser.ListBucketInfo.listId
Id of this record
|
RecordId |
SegmentParser.MapInfo.mapId
Id of this record
|
RecordId |
SegmentParser.NodeInfo.nodeId
Id of this record
|
RecordId |
SegmentParser.PropertyInfo.propertyId
Id of this record
|
RecordId |
SegmentParser.TemplateInfo.templateId
Id of this record
|
RecordId |
SegmentParser.ValueInfo.valueId
Id of this record
|
| Modifier and Type | Field and Description |
|---|---|
List<RecordId> |
SegmentParser.ListBucketInfo.entries
Entries of this bucket
|
| Modifier and Type | Method and Description |
|---|---|
RecordId |
SegmentBufferWriterPool.execute(WriteOperationHandler.WriteOperation writeOperation) |
RecordId |
SegmentBufferWriter.execute(WriteOperationHandler.WriteOperation writeOperation) |
static RecordId |
RecordId.fromString(SegmentStore factory,
String id) |
RecordId |
NodeCache.get(String stableId) |
abstract RecordId |
RecordCache.get(T key) |
RecordId |
Revisions.getHead()
Returns the record id of the head state.
|
static RecordId |
SegmentStream.getRecordIdIfAvailable(InputStream stream,
SegmentStore store) |
static RecordId |
SegmentNodeStateHelper.getTemplateId(SegmentNodeState s) |
RecordId |
SegmentBufferWriter.prepare(RecordType type,
int size,
Collection<RecordId> ids)
Before writing a record (which are written backwards, from the end of the
file to the beginning), this method is called, to ensure there is enough
space.
|
RecordId |
SegmentWriter.writeBlock(byte[] bytes,
int offset,
int length)
Writes a block record containing the given block of bytes.
|
RecordId |
SegmentWriter.writeList(List<RecordId> list)
Write a list record.
|
RecordId |
SegmentWriter.writeString(String string)
Write a string record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RecordIdSet.addIfNotPresent(RecordId id)
Add
id to this set if not already present |
void |
RecordUsageAnalyser.analyseNode(RecordId nodeId) |
boolean |
Template.compare(RecordId thisId,
RecordId thatId) |
int |
RecordId.compareTo(RecordId that) |
boolean |
RecordIdSet.contains(RecordId id)
Check whether
id is present is this set. |
org.apache.jackrabbit.oak.spi.state.NodeState |
Template.getChildNode(String name,
RecordId recordId) |
protected void |
SegmentParser.onBlob(RecordId parentId,
RecordId blobId)
Callback called by
SegmentParser.parseValue(RecordId, RecordId, Type) upon encountering a blob. |
protected void |
RecordUsageAnalyser.onBlob(RecordId parentId,
RecordId blobId) |
protected void |
SegmentParser.onList(RecordId parentId,
RecordId listId,
int count)
Callback called by
SegmentParser.parseNode(RecordId),
SegmentParser.parseProperty(RecordId, RecordId, PropertyTemplate),
SegmentParser.parseTemplate(RecordId),
SegmentParser.parseBlob(RecordId) and
SegmentParser.parseString(RecordId) upon encountering a list. |
protected void |
RecordUsageAnalyser.onList(RecordId parentId,
RecordId listId,
int count) |
protected void |
SegmentParser.onListBucket(RecordId parentId,
RecordId listId,
int index,
int count,
int capacity)
Callback called by
SegmentParser.parseList(RecordId, RecordId, int) and
SegmentParser.parseListBucket(RecordId, int, int, int) upon encountering a list
bucket. |
protected void |
SegmentParser.onMap(RecordId parentId,
RecordId mapId,
MapRecord map)
Callback called by
SegmentParser.parseNode(RecordId),
SegmentParser.parseMapDiff(RecordId, MapRecord) and
SegmentParser.parseMapBranch(RecordId, MapRecord) upon encountering a map. |
protected void |
SegmentParser.onMapBranch(RecordId parentId,
RecordId mapId,
MapRecord map)
Callback called by
SegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map branch. |
protected void |
RecordUsageAnalyser.onMapBranch(RecordId parentId,
RecordId mapId,
MapRecord map) |
protected void |
SegmentParser.onMapDiff(RecordId parentId,
RecordId mapId,
MapRecord map)
Callback called by
SegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map diff. |
protected void |
RecordUsageAnalyser.onMapDiff(RecordId parentId,
RecordId mapId,
MapRecord map) |
protected void |
SegmentParser.onMapLeaf(RecordId parentId,
RecordId mapId,
MapRecord map)
Callback called by
SegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map leaf. |
protected void |
RecordUsageAnalyser.onMapLeaf(RecordId parentId,
RecordId mapId,
MapRecord map) |
protected void |
SegmentParser.onNode(RecordId parentId,
RecordId nodeId)
Callback called by
SegmentParser.parseNode(RecordId) upon encountering
a child node. |
protected void |
RecordUsageAnalyser.onNode(RecordId parentId,
RecordId nodeId) |
protected void |
SegmentParser.onProperty(RecordId parentId,
RecordId propertyId,
PropertyTemplate template)
Callback called by
SegmentParser.parseNode(RecordId) upon encountering
a property. |
protected void |
RecordUsageAnalyser.onProperty(RecordId parentId,
RecordId propertyId,
PropertyTemplate template) |
protected void |
SegmentParser.onString(RecordId parentId,
RecordId stringId)
Callback called by
SegmentParser.parseTemplate(RecordId),
SegmentParser.parseMapLeaf(RecordId, MapRecord) and
SegmentParser.parseValue(RecordId, RecordId, Type) upon encountering a string. |
protected void |
RecordUsageAnalyser.onString(RecordId parentId,
RecordId stringId) |
protected void |
SegmentParser.onTemplate(RecordId parentId,
RecordId templateId)
Callback called by
SegmentParser.parseNode(RecordId) upon encountering
a template |
protected void |
RecordUsageAnalyser.onTemplate(RecordId parentId,
RecordId templateId) |
protected void |
SegmentParser.onValue(RecordId parentId,
RecordId valueId,
org.apache.jackrabbit.oak.api.Type<?> type)
Callback called by
SegmentParser.parseProperty(RecordId, RecordId, PropertyTemplate) upon
encountering a value. |
SegmentParser.BlobInfo |
SegmentParser.parseBlob(RecordId blobId)
Parse a blob record
|
static SegmentGraph.Graph<UUID> |
SegmentGraph.parseHeadGraph(SegmentReader reader,
RecordId root)
Parser the head graph of segment store.
|
SegmentParser.ListInfo |
SegmentParser.parseList(RecordId parentId,
RecordId listId,
int count)
Parse a list record
|
SegmentParser.ListBucketInfo |
SegmentParser.parseListBucket(RecordId listId,
int index,
int count,
int capacity)
Parse item of list buckets
|
SegmentParser.MapInfo |
SegmentParser.parseMap(RecordId parentId,
RecordId mapId,
MapRecord map)
Parse a map record
|
SegmentParser.MapInfo |
SegmentParser.parseMapBranch(RecordId mapId,
MapRecord map)
Parse a map branch record
|
SegmentParser.MapInfo |
SegmentParser.parseMapDiff(RecordId mapId,
MapRecord map)
Parse a map diff record
|
SegmentParser.MapInfo |
SegmentParser.parseMapLeaf(RecordId mapId,
MapRecord map)
Parse a map leaf record
|
SegmentParser.NodeInfo |
SegmentParser.parseNode(RecordId nodeId)
Parse a node record
|
SegmentParser.PropertyInfo |
SegmentParser.parseProperty(RecordId parentId,
RecordId propertyId,
PropertyTemplate template)
Parse a property
|
SegmentParser.BlobInfo |
SegmentParser.parseString(RecordId stringId)
Parse a string record
|
SegmentParser.TemplateInfo |
SegmentParser.parseTemplate(RecordId templateId)
Parse a template record
|
SegmentParser.ValueInfo |
SegmentParser.parseValue(RecordId parentId,
RecordId valueId,
org.apache.jackrabbit.oak.api.Type<?> type)
Parse a value record
|
void |
NodeCache.put(String stableId,
RecordId recordId,
byte cost)
Add a mapping from
key to value with a given cost. |
abstract void |
RecordCache.put(T key,
RecordId value)
Add a mapping from
key to value. |
SegmentBlob |
SegmentReader.readBlob(RecordId id)
Read the blob identified by
id. |
SegmentBlob |
CachingSegmentReader.readBlob(RecordId id) |
MapRecord |
SegmentReader.readMap(RecordId id)
Read the map identified by
id. |
MapRecord |
CachingSegmentReader.readMap(RecordId id) |
SegmentNodeState |
SegmentReader.readNode(RecordId id)
Read the node identified by
id. |
SegmentNodeState |
CachingSegmentReader.readNode(RecordId id) |
SegmentPropertyState |
SegmentReader.readProperty(RecordId id,
PropertyTemplate template)
Read the property identified by
id and template |
SegmentPropertyState |
CachingSegmentReader.readProperty(RecordId id,
PropertyTemplate template) |
String |
SegmentReader.readString(RecordId id)
Read the string identified by
id. |
String |
CachingSegmentReader.readString(RecordId id)
Cached reading of a string.
|
Template |
SegmentReader.readTemplate(RecordId id)
Read the template identified by
id. |
Template |
CachingSegmentReader.readTemplate(RecordId id)
Cached reading of a template.
|
boolean |
Revisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options)
Atomically set the record id of the current head state to the
given
head state if the current head state matches
the expected value. |
int |
CacheWeights.NodeCacheWeigher.weigh(String key,
RecordId value) |
int |
CacheWeights.StringCacheWeigher.weigh(String key,
RecordId value) |
int |
CacheWeights.TemplateCacheWeigher.weigh(Template key,
RecordId value) |
void |
SegmentBufferWriter.writeRecordId(RecordId recordId)
Write a record id, and marks the record id as referenced (removes it from
the unreferenced set).
|
void |
SegmentBufferWriter.writeRecordId(RecordId recordId,
boolean reference)
Write a record ID.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> com.google.common.base.Supplier<RecordCache<T>> |
RecordCache.factory(int size,
com.google.common.cache.Weigher<T,RecordId> weigher) |
RecordId |
SegmentBufferWriter.prepare(RecordType type,
int size,
Collection<RecordId> ids)
Before writing a record (which are written backwards, from the end of the
file to the beginning), this method is called, to ensure there is enough
space.
|
boolean |
Revisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Atomically set the record id of the current head state to the value
returned from the
newHead function when called with the record
id of the current head. |
boolean |
Revisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Atomically set the record id of the current head state to the value
returned from the
newHead function when called with the record
id of the current head. |
RecordId |
SegmentWriter.writeList(List<RecordId> list)
Write a list record.
|
MapRecord |
SegmentWriter.writeMap(MapRecord base,
Map<String,RecordId> changes)
Write a map record.
|
| Constructor and Description |
|---|
BlobInfo(RecordId blobId,
SegmentParser.BlobType blobType,
int size) |
ListBucketInfo(RecordId listId,
boolean leaf,
List<RecordId> entries,
int size) |
ListInfo(RecordId listId,
int count,
int size) |
MapInfo(RecordId mapId,
int size) |
NodeInfo(RecordId nodeId,
String stableId,
int nodeCount,
int propertyCount,
int size) |
PropertyInfo(RecordId propertyId,
int count,
int size) |
TemplateInfo(RecordId templateId,
boolean hasPrimaryType,
boolean hasMixinType,
boolean zeroChildNodes,
boolean manyChildNodes,
int mixinCount,
int propertyCount,
int size) |
ValueInfo(RecordId valueId,
org.apache.jackrabbit.oak.api.Type<?> type) |
| Constructor and Description |
|---|
Default(com.google.common.base.Supplier<RecordCache<String>> stringCacheFactory,
com.google.common.base.Supplier<RecordCache<Template>> templateCacheFactory,
com.google.common.base.Supplier<PriorityCache<String,RecordId>> nodeCacheFactory)
New instance using the passed factories for creating cache instances.
|
ListBucketInfo(RecordId listId,
boolean leaf,
List<RecordId> entries,
int size) |
| Modifier and Type | Method and Description |
|---|---|
RecordId |
ReadOnlyRevisions.getHead() |
RecordId |
TarRevisions.getHead() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ReadOnlyRevisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options) |
boolean |
TarRevisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options)
This implementation blocks if a concurrent call to
Revisions.setHead(Function, Option...) is already in
progress. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ReadOnlyRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options) |
boolean |
ReadOnlyRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options) |
boolean |
TarRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
This implementation blocks if a concurrent call is already in progress.
|
boolean |
TarRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
This implementation blocks if a concurrent call is already in progress.
|
| Modifier and Type | Method and Description |
|---|---|
RecordId |
MemoryStoreRevisions.getHead() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MemoryStoreRevisions.setHead(RecordId expected,
RecordId head,
Revisions.Option... options) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MemoryStoreRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Not supported: throws
UnsupportedOperationException |
boolean |
MemoryStoreRevisions.setHead(com.google.common.base.Function<RecordId,RecordId> newHead,
Revisions.Option... options)
Not supported: throws
UnsupportedOperationException |
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.