public class BSBundle extends Object implements Comparable<BSBundle>
Constructor and Description |
---|
BSBundle(int bopId,
int shardId) |
public int compareTo(BSBundle o)
This orders the BSBundle
s by reverse bopId
and by
shardId
if the bopId
is the same. This order imposes a
bias to draw entries with higher bopId
s from an ordered
collection.
Note: Query plans are assigned bopIds from 0 through N where higher
bopIds are assigned to operators that occur later in the query plan. This
is not a strict rule, but it is a strong bias. Given that bias and an
ordered map, this Comparator
will tend to draw from operators
that are further along in the query plan. This emphasizes getting results
through the pipeline quickly. Whether or not this Comparator
has
any effect depends on the ChunkedRunningQuery.consumeChunk()
method and the backing map over the operator queues. If a hash map is
used, then the Comparator
is ignored. If a skip list map is used,
then the Comparator
will influence the manner in which the
operator queues are drained.
compareTo
in interface Comparable<BSBundle>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.