public class RecordUsageAnalyser extends SegmentParser
SegmentParser.BlobInfo, SegmentParser.BlobType, SegmentParser.ListBucketInfo, SegmentParser.ListInfo, SegmentParser.MapInfo, SegmentParser.NodeInfo, SegmentParser.PropertyInfo, SegmentParser.TemplateInfo, SegmentParser.ValueInfo| Constructor and Description |
|---|
RecordUsageAnalyser() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyseNode(RecordId nodeId) |
long |
getExternalBlobCount() |
long |
getListCount() |
long |
getListSize() |
long |
getLongBlobCount() |
long |
getLongStringCount() |
long |
getMapCount() |
long |
getMapSize() |
long |
getMediumBlobCount() |
long |
getMediumStringCount() |
long |
getNodeCount() |
long |
getNodeSize() |
long |
getPropertyCount() |
long |
getSmallBlobCount() |
long |
getSmallStringCount() |
long |
getTemplateCount() |
long |
getTemplateSize() |
long |
getValueSize() |
protected void |
onBlob(RecordId parentId,
RecordId blobId)
Callback called by
SegmentParser.parseValue(RecordId, RecordId, Type) upon encountering a blob. |
protected void |
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 |
onMapBranch(RecordId parentId,
RecordId mapId,
org.apache.jackrabbit.oak.plugins.segment.MapRecord map)
Callback called by
SegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map branch. |
protected void |
onMapDiff(RecordId parentId,
RecordId mapId,
org.apache.jackrabbit.oak.plugins.segment.MapRecord map)
Callback called by
SegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map diff. |
protected void |
onMapLeaf(RecordId parentId,
RecordId mapId,
org.apache.jackrabbit.oak.plugins.segment.MapRecord map)
Callback called by
SegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map leaf. |
protected void |
onNode(RecordId parentId,
RecordId nodeId)
Callback called by
SegmentParser.parseNode(RecordId) upon encountering
a child node. |
protected void |
onProperty(RecordId parentId,
RecordId propertyId,
org.apache.jackrabbit.oak.plugins.segment.PropertyTemplate template)
Callback called by
SegmentParser.parseNode(RecordId) upon encountering
a property. |
protected void |
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 |
onTemplate(RecordId parentId,
RecordId templateId)
Callback called by
SegmentParser.parseNode(RecordId) upon encountering
a template |
String |
toString() |
onListBucket, onMap, onValue, parseBlob, parseList, parseListBucket, parseMap, parseMapBranch, parseMapDiff, parseMapLeaf, parseNode, parseProperty, parseString, parseTemplate, parseValuepublic long getValueSize()
public long getTemplateSize()
template records.public long getNodeSize()
node records.public long getMapCount()
public long getListCount()
public long getPropertyCount()
public long getSmallBlobCount()
small blobs.public long getMediumBlobCount()
medium blobs.public long getLongBlobCount()
public long getExternalBlobCount()
public long getSmallStringCount()
small strings.public long getMediumStringCount()
medium strings.public long getLongStringCount()
public long getTemplateCount()
public long getNodeCount()
public void analyseNode(RecordId nodeId)
protected void onNode(RecordId parentId, RecordId nodeId)
SegmentParserSegmentParser.parseNode(RecordId) upon encountering
a child node.onNode in class SegmentParserparentId - id of the parent nodenodeId - if of the child nodeprotected void onTemplate(RecordId parentId, RecordId templateId)
SegmentParserSegmentParser.parseNode(RecordId) upon encountering
a templateonTemplate in class SegmentParserparentId - id of the node being parsedtemplateId - id of the templateprotected void onMapDiff(RecordId parentId, RecordId mapId, org.apache.jackrabbit.oak.plugins.segment.MapRecord map)
SegmentParserSegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map diff.onMapDiff in class SegmentParserparentId - the id of the parent mapmapId - the id of the mapmap - the mapprotected void onMapLeaf(RecordId parentId, RecordId mapId, org.apache.jackrabbit.oak.plugins.segment.MapRecord map)
SegmentParserSegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map leaf.onMapLeaf in class SegmentParserparentId - the id of the parent mapmapId - the id of the mapmap - the mapprotected void onMapBranch(RecordId parentId, RecordId mapId, org.apache.jackrabbit.oak.plugins.segment.MapRecord map)
SegmentParserSegmentParser.parseMap(RecordId, RecordId, MapRecord) upon encountering
a map branch.onMapBranch in class SegmentParserparentId - the id of the parent mapmapId - the id of the mapmap - the mapprotected void onProperty(RecordId parentId, RecordId propertyId, org.apache.jackrabbit.oak.plugins.segment.PropertyTemplate template)
SegmentParserSegmentParser.parseNode(RecordId) upon encountering
a property.onProperty in class SegmentParserparentId - the id of the parent nodepropertyId - the id of the propertytemplate - the property templateprotected void onBlob(RecordId parentId, RecordId blobId)
SegmentParserSegmentParser.parseValue(RecordId, RecordId, Type) upon encountering a blob.onBlob in class SegmentParserparentId - the id of the blob's parentblobId - the id of the blobprotected void onString(RecordId parentId, RecordId stringId)
SegmentParserSegmentParser.parseTemplate(RecordId),
SegmentParser.parseMapLeaf(RecordId, MapRecord) and
SegmentParser.parseValue(RecordId, RecordId, Type) upon encountering a string.onString in class SegmentParserparentId - the id of the string's parentstringId - the id of the stringprotected void onList(RecordId parentId, RecordId listId, int count)
SegmentParserSegmentParser.parseNode(RecordId),
SegmentParser.parseProperty(RecordId, RecordId, PropertyTemplate),
SegmentParser.parseTemplate(RecordId),
SegmentParser.parseBlob(RecordId) and
SegmentParser.parseString(RecordId) upon encountering a list.onList in class SegmentParserparentId - the id of the list's parentlistId - the id of the listcount - the number of elements in the listCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.