/** * Non-transactionally counts the number of entries within the given range. Implementations * of this method typically scan over the entries, and so it shouldn't be expected to run * in constant time. * * @param lowKey inclusive lowest key in the counted range; pass null for open range * @param highKey exclusive highest key in the counted range; pass null for open range */ public default long count(byte[] lowKey, byte[] highKey) throws IOException { return ViewUtils.count(this, false, lowKey, highKey); }
/** * Non-transactionally counts the number of entries within the given range. Implementations * of this method typically scan over the entries, and so it shouldn't be expected to run * in constant time. * * @param lowKey inclusive lowest key in the counted range; pass null for open range * @param highKey exclusive highest key in the counted range; pass null for open range */ public default long count(byte[] lowKey, byte[] highKey) throws IOException { return ViewUtils.count(this, false, lowKey, highKey); }
/** * Non-transactionally counts the number of entries within the given range. Implementations * of this method typically scan over the entries, and so it shouldn't be expected to run * in constant time. * * @param lowKey inclusive lowest key in the counted range; pass null for open range * @param highKey exclusive highest key in the counted range; pass null for open range */ public default long count(byte[] lowKey, byte[] highKey) throws IOException { return ViewUtils.count(this, false, lowKey, highKey); }
@Override public long count(byte[] lowKey, byte[] highKey) throws IOException { return ViewUtils.count(this, mTransformer.requireValue(), lowKey, highKey); }
@Override public long count(byte[] lowKey, byte[] highKey) throws IOException { return ViewUtils.count(this, mTransformer.requireValue() == Boolean.TRUE, lowKey, highKey); }
@Override public long count(byte[] lowKey, byte[] highKey) throws IOException { return ViewUtils.count(this, mTransformer.requireValue(), lowKey, highKey); }