public class BuildResult extends AbstractResult implements Params
CompactingMergeTask
.Modifier and Type | Field and Description |
---|---|
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. |
indexMetadata, name
Constructor and Description |
---|
BuildResult(String name,
boolean compactingMerge,
AbstractBTree[] sources,
IndexMetadata indexMetadata,
SegmentMetadata segmentMetadata,
IndexSegmentBuilder builder) |
public final int sourceCount
IndexSegment
was
built.public IResourceMetadata[] sources
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
.
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.
public final SegmentMetadata segmentMetadata
IndexSegment
.public final IndexSegmentBuilder builder
IndexSegment
and which contains more
interesting information about the build.public BuildResult(String name, boolean compactingMerge, AbstractBTree[] sources, IndexMetadata indexMetadata, SegmentMetadata segmentMetadata, IndexSegmentBuilder builder)
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.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.