/** * This returns whether the encapsulated DatBag is distinct, per the sorted setting. * * @param context the context the method is being executed in * @return true if it the encapsulated is sorted, false otherwise */ @JRubyMethod(name = {"sorted?", "is_sorted?"}) public RubyBoolean isSorted(ThreadContext context) { return RubyBoolean.newBoolean(context.getRuntime(), internalDB.isSorted()); }
Iterator<Tuple> i = iterator(); while (i.hasNext()) thisClone.add(i.next()); if (((DataBag) other).isSorted() || ((DataBag) other).isDistinct()) { otherClone = bOther; } else {
if (((DataBag) other).isSorted() || ((DataBag)other).isDistinct()) { otherClone = bOther; } else {