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() |
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-2018 The Apache Software Foundation. All Rights Reserved.