com.bigdata.resources
Class BuildResult

java.lang.Object
  extended by com.bigdata.resources.AbstractResult
      extended by com.bigdata.resources.BuildResult
All Implemented Interfaces:
Params

public class BuildResult
extends AbstractResult
implements Params

The result of an CompactingMergeTask.

Version:
$Id: BuildResult.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 IndexSegmentBuilder builder
          The object which built the IndexSegment and which contains more interesting information about the build.
 boolean compactingMerge
          true iff the build operation was a compacting merge of the entire index partition view.
 SegmentMetadata segmentMetadata
          The metadata describing the generated IndexSegment.
 int sourceCount
          The #of sources in the view from which the IndexSegment was built.
 IResourceMetadata[] sources
          The sources in the view from which the IndexSegment was built.
 
Fields inherited from class com.bigdata.resources.AbstractResult
indexMetadata, name
 
Constructor Summary
BuildResult(String name, boolean compactingMerge, AbstractBTree[] sources, IndexMetadata indexMetadata, SegmentMetadata segmentMetadata, IndexSegmentBuilder builder)
           
 
Method Summary
 Map<String,Object> getParams()
          Return the fields of interest as an set of (name,value) pairs.
 String toString()
           
 
Methods inherited from class com.bigdata.resources.AbstractResult
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceCount

public final int sourceCount
The #of sources in the view from which the IndexSegment was built.


sources

public IResourceMetadata[] sources
The sources in the view from which the IndexSegment was built.

Note: Builds may include anything from the mutable BTree on the old journal to the full view of the index partition. They MAY be comprised of only a subset of the full view as long as the subset is formed from the 1st N sources in the full view and is taken in the same order as the full view. As a degenerate case, the subset may include only the data from the mutable BTree on the old journal. However, the subset can also include additional sources that were merged together in order to generate the new IndexSegment.


compactingMerge

public boolean compactingMerge
true iff the build operation was a compacting merge of the entire index partition view.

Note: A compacting merge is ONLY permitted when the entire view is processed. This is necessary in order for the index partition to remain consistent. A compacting merge assumes a closed world (that is, it assumes that there are no deleted tuples which are not present in the set of sources which it processed). A non-merge build DOES NOT make this assumption and therefore WILL NOT discard deleted tuples which unless they have been overwritten in more recent sources in the view.


segmentMetadata

public final SegmentMetadata segmentMetadata
The metadata describing the generated IndexSegment.


builder

public final IndexSegmentBuilder builder
The object which built the IndexSegment and which contains more interesting information about the build.

Constructor Detail

BuildResult

public BuildResult(String name,
                   boolean compactingMerge,
                   AbstractBTree[] sources,
                   IndexMetadata indexMetadata,
                   SegmentMetadata segmentMetadata,
                   IndexSegmentBuilder builder)
Parameters:
name - The name under which the processed index partition was registered (this is typically different from the name of the scale-out index).
indexMetadata - The index metadata object for the processed index as of the timestamp of the view from which the IndexSegment was generated.
segmentMetadata - The metadata describing the generated IndexSegment.
builder - Contains more interesting information about the build.
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractResult

getParams

public Map<String,Object> getParams()
Description copied from interface: Params
Return the fields of interest as an set of (name,value) pairs.

Specified by:
getParams in interface Params


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