@Override public long ord() throws IOException { return tenum.ord(); }
@Override public long ord() throws IOException { return actualEnum.ord(); }
@Override public long ord() throws IOException { return in.ord(); }
long ord = -1; try { ord = termsEnum.ord(); } catch (UnsupportedOperationException uoe) { hasOrd = false; long ord = i*(termCount/seekCount); termsEnum.seekExact(ord); long actualOrd = termsEnum.ord(); if (actualOrd != ord) { throw new RuntimeException("seek to ord " + ord + " returned ord " + actualOrd);
long ord = termsEnum.ord(); if (ord >= 0) { termSet.set(ord);
long segmentOrd = top.termsEnum.ord(); long delta = globalOrd - segmentOrd; int segmentIndex = top.subIndex;
/** * Computes which global ordinals are accepted by this IncludeExclude instance. * */ @Override public LongBitSet acceptedGlobalOrdinals(SortedSetDocValues globalOrdinals) throws IOException { LongBitSet acceptedGlobalOrdinals = new LongBitSet(globalOrdinals.getValueCount()); TermsEnum globalTermsEnum; Terms globalTerms = new DocValuesTerms(globalOrdinals); // TODO: specialize based on compiled.type: for ALL and prefixes (sinkState >= 0 ) we can avoid i/o and just set bits. globalTermsEnum = compiled.getTermsEnum(globalTerms); for (BytesRef term = globalTermsEnum.next(); term != null; term = globalTermsEnum.next()) { acceptedGlobalOrdinals.set(globalTermsEnum.ord()); } return acceptedGlobalOrdinals; }
@Override public LongBitSet acceptedGlobalOrdinals(SortedSetDocValues globalOrdinals) throws IOException { final long numOrds = globalOrdinals.getValueCount(); final LongBitSet acceptedGlobalOrdinals = new LongBitSet(numOrds); final TermsEnum termEnum = globalOrdinals.termsEnum(); BytesRef term = termEnum.next(); while (term != null) { if (Math.floorMod(StringHelper.murmurhash3_x86_32(term, HASH_PARTITIONING_SEED), incNumPartitions) == incZeroBasedPartition) { acceptedGlobalOrdinals.set(termEnum.ord()); } term = termEnum.next(); } return acceptedGlobalOrdinals; } }
@Override public long ord() throws IOException { return actualEnum.ord(); }
@Override public long ord() throws IOException { return actualEnum.ord(); }
@Override public long ord() throws IOException { return tenum.ord(); }
@Override public long ord() throws IOException { return in.ord(); }
@Override public long ord() throws IOException { return in.ord(); }
@Override public long ord() throws IOException { return tenum.ord(); }
@Override public long ord() throws IOException { return delegate().ord(); }
@Override public final long ord() throws IOException { return getDelegate().ord(); }