com.bigdata.btree
Class ViewStatistics

java.lang.Object
  extended by com.bigdata.btree.ViewStatistics

public class ViewStatistics
extends Object

Helper class collects some statistics about an ILocalBTreeView.

Version:
$Id: ViewStatistics.java 2783 2010-05-07 13:14:20Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 int sourceCount
          The #of journals and index segments in the view.
 int sourceJournalCount
          The #of journals in the view.
 int sourceSegmentCount
          The #of index segments in the view.
 long sumSegBytes
          The sum of the size on disk across the index segments in the view.
 
Constructor Summary
ViewStatistics(ILocalBTreeView view)
          Collects some statistics about the view.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceCount

public final int sourceCount
The #of journals and index segments in the view.


sourceJournalCount

public final int sourceJournalCount
The #of journals in the view.


sourceSegmentCount

public final int sourceSegmentCount
The #of index segments in the view.


sumSegBytes

public final long sumSegBytes
The sum of the size on disk across the index segments in the view.

Constructor Detail

ViewStatistics

public ViewStatistics(ILocalBTreeView view)
Collects some statistics about the view.

Note: If the view is assembled solely from the BTree on a journal rather than from all sources in its LocalPartitionMetadata then statistics about any IndexSegments in the view WILL NOT be reported.

Parameters:
view - The view.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.