@Override public boolean isInclusive(Bound b) { if (isEmpty()) return false; return restrictions.lastRestriction().isInclusive(b); }
@Override public boolean hasBound(Bound b) { if (isEmpty()) return false; return restrictions.lastRestriction().hasBound(b); }
@Override public boolean hasBound(Bound b) { if (isEmpty()) return false; return restrictions.lastRestriction().hasBound(b); }
@Override public boolean hasBound(Bound b) { if (isEmpty()) return false; return restrictions.lastRestriction().hasBound(b); }
@Override public boolean isInclusive(Bound b) { if (isEmpty()) return false; return restrictions.lastRestriction().isInclusive(b); }
@Override public boolean isInclusive(Bound b) { if (isEmpty()) return false; return restrictions.lastRestriction().isInclusive(b); }
@Override public PartitionKeyRestrictions mergeWith(Restriction restriction) { if (restriction.isOnToken()) { if (isEmpty()) return (PartitionKeyRestrictions) restriction; return new TokenFilter(this, (TokenRestriction) restriction); } return new PartitionKeySingleRestrictionSet(this, (SingleRestriction) restriction); }
@Override public PartitionKeyRestrictions mergeWith(Restriction restriction) { if (restriction.isOnToken()) { if (isEmpty()) return (PartitionKeyRestrictions) restriction; return new TokenFilter(this, (TokenRestriction) restriction); } return new PartitionKeySingleRestrictionSet(this, (SingleRestriction) restriction); }
@Override public boolean needFiltering(CFMetaData cfm) { if (isEmpty()) return false; // slice or has unrestricted key component return hasUnrestrictedPartitionKeyComponents(cfm) || hasSlice() || hasContains(); }
@Override public PartitionKeyRestrictions mergeWith(Restriction restriction) { if (restriction.isOnToken()) { if (isEmpty()) return (PartitionKeyRestrictions) restriction; return new TokenFilter(this, (TokenRestriction) restriction); } return new PartitionKeySingleRestrictionSet(this, (SingleRestriction) restriction); }
@Override public boolean needFiltering(CFMetaData cfm) { if (isEmpty()) return false; // slice or has unrestricted key component return hasUnrestrictedPartitionKeyComponents(cfm) || hasSlice() || hasContains(); }
@Override public boolean needFiltering(CFMetaData cfm) { if (isEmpty()) return false; // slice or has unrestricted key component return hasUnrestrictedPartitionKeyComponents(cfm) || hasSlice() || hasContains(); }