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(@NotNull SegmentReader reader) |
onListBucket, onMap, onValue, parseBlob, parseList, parseListBucket, parseMap, parseMapBranch, parseMapDiff, parseMapLeaf, parseNode, parseProperty, parseString, parseTemplate, parseValue
public RecordUsageAnalyser(@NotNull @NotNull SegmentReader reader)
public 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)
SegmentParser
SegmentParser.parseNode(RecordId)
upon encountering
a child node.onNode
in class SegmentParser
parentId
- id of the parent nodenodeId
- if of the child nodeprotected void onTemplate(RecordId parentId, RecordId templateId)
SegmentParser
SegmentParser.parseNode(RecordId)
upon encountering
a templateonTemplate
in class SegmentParser
parentId
- id of the node being parsedtemplateId
- id of the templateprotected void onMapDiff(RecordId parentId, RecordId mapId, MapRecord map)
SegmentParser
SegmentParser.parseMap(RecordId, RecordId, MapRecord)
upon encountering
a map diff.onMapDiff
in class SegmentParser
parentId
- the id of the parent mapmapId
- the id of the mapmap
- the mapprotected void onMapLeaf(RecordId parentId, RecordId mapId, MapRecord map)
SegmentParser
SegmentParser.parseMap(RecordId, RecordId, MapRecord)
upon encountering
a map leaf.onMapLeaf
in class SegmentParser
parentId
- the id of the parent mapmapId
- the id of the mapmap
- the mapprotected void onMapBranch(RecordId parentId, RecordId mapId, MapRecord map)
SegmentParser
SegmentParser.parseMap(RecordId, RecordId, MapRecord)
upon encountering
a map branch.onMapBranch
in class SegmentParser
parentId
- the id of the parent mapmapId
- the id of the mapmap
- the mapprotected void onProperty(RecordId parentId, RecordId propertyId, PropertyTemplate template)
SegmentParser
SegmentParser.parseNode(RecordId)
upon encountering
a property.onProperty
in class SegmentParser
parentId
- the id of the parent nodepropertyId
- the id of the propertytemplate
- the property templateprotected void onBlob(RecordId parentId, RecordId blobId)
SegmentParser
SegmentParser.parseValue(RecordId, RecordId, Type)
upon encountering a blob.onBlob
in class SegmentParser
parentId
- the id of the blob's parentblobId
- the id of the blobprotected void onString(RecordId parentId, RecordId stringId)
SegmentParser
SegmentParser.parseTemplate(RecordId)
,
SegmentParser.parseMapLeaf(RecordId, MapRecord)
and
SegmentParser.parseValue(RecordId, RecordId, Type)
upon encountering a string.onString
in class SegmentParser
parentId
- the id of the string's parentstringId
- the id of the stringprotected void onList(RecordId parentId, RecordId listId, int count)
SegmentParser
SegmentParser.parseNode(RecordId)
,
SegmentParser.parseProperty(RecordId, RecordId, PropertyTemplate)
,
SegmentParser.parseTemplate(RecordId)
,
SegmentParser.parseBlob(RecordId)
and
SegmentParser.parseString(RecordId)
upon encountering a list.onList
in class SegmentParser
parentId
- the id of the list's parentlistId
- the id of the listcount
- the number of elements in the listCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.