/** * Orders {@link Bundle}s first by their {@link IKeyOrder} and then imposes * an <code>unsigned byte[]</code> order on the {@link #fromKey}. This * groups {@link Bundle}s for the same scale-out index together which allows * us to make more efficient requests against the MDS and makes it more * likely that we can reuse the last {@link PartitionLocator} for the next * as-bound predicate. * * @see <a href="https://sourceforge.net/apps/trac/bigdata/ticket/457"> * "No such index" on cluster under concurrent query workload </a> */ public int compareTo(final Bundle<F> o) { int ret = keyOrder.getIndexName().compareTo(o.keyOrder.getIndexName()); if (ret == 0) { ret = BytesUtil.compareBytes(this.fromKey, o.fromKey); } return ret; }
/** * Orders {@link Bundle}s first by their {@link IKeyOrder} and then imposes * an <code>unsigned byte[]</code> order on the {@link #fromKey}. This * groups {@link Bundle}s for the same scale-out index together which allows * us to make more efficient requests against the MDS and makes it more * likely that we can reuse the last {@link PartitionLocator} for the next * as-bound predicate. * * @see <a href="https://sourceforge.net/apps/trac/bigdata/ticket/457"> * "No such index" on cluster under concurrent query workload </a> */ public int compareTo(final Bundle<F> o) { int ret = keyOrder.getIndexName().compareTo(o.keyOrder.getIndexName()); if (ret == 0) { ret = BytesUtil.compareBytes(this.fromKey, o.fromKey); } return ret; }
/** * The fully qualified name of the index. * * @param relation * The relation. * @param keyOrder * The natural index order. * * @return The fully qualified index name. */ static public <E> String getFQN(final IRelation<E> relation, final IKeyOrder<? extends E> keyOrder) { return getFQN(relation, keyOrder.getIndexName()); }
/** * The fully qualified name of the index. * * @param relation * The relation. * @param keyOrder * The natural index order. * * @return The fully qualified index name. */ static public <E> String getFQN(final IRelation<E> relation, final IKeyOrder<? extends E> keyOrder) { return getFQN(relation, keyOrder.getIndexName()); }
+ "." + keyOrder.getIndexName(), partitionId);
+ "." + keyOrder.getIndexName(), partitionId);