@Override public int lookupTerm(BytesRef key) { return (int) in.lookupTerm(key); } }
@Override public int lookupTerm(BytesRef key) { return (int) in.lookupTerm(key); } }
@Override public int lookupTerm(BytesRef key) { return (int) in.lookupTerm(key); } }
@Override public int lookupTerm(BytesRef key) { return (int) in.lookupTerm(key); } }
@Override public int lookupTerm(BytesRef key) { return (int) in.lookupTerm(key); } }
@Override public int lookupTerm(BytesRef key) { return (int) in.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues)binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues) binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues)binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues) binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues)binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues)binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues)binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues)binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
@Override public long lookupTerm(BytesRef key) { if (binary instanceof CompressedBinaryDocValues) { return ((CompressedBinaryDocValues) binary).lookupTerm(key); } else { return super.lookupTerm(key); } }
static RandomAccessOrds replaceMissing(final RandomAccessOrds values, final BytesRef missing) { final long missingOrd = values.lookupTerm(missing); if (missingOrd >= 0) { // The value already exists return replaceMissingOrd(values, missingOrd); } else { final long insertedOrd = -1 - missingOrd; return insertOrd(values, insertedOrd, missing); } }
static RandomAccessOrds replaceMissing(final RandomAccessOrds values, final BytesRef missing) { final long missingOrd = values.lookupTerm(missing); if (missingOrd >= 0) { // The value already exists return replaceMissingOrd(values, missingOrd); } else { final long insertedOrd = -1 - missingOrd; return insertOrd(values, insertedOrd, missing); } }
static RandomAccessOrds replaceMissing(final RandomAccessOrds values, final BytesRef missing) { final long missingOrd = values.lookupTerm(missing); if (missingOrd >= 0) { // The value already exists return replaceMissingOrd(values, missingOrd); } else { final long insertedOrd = -1 - missingOrd; return insertOrd(values, insertedOrd, missing); } }
@Override public LongBitSet acceptedGlobalOrdinals(RandomAccessOrds globalOrdinals) throws IOException { LongBitSet acceptedGlobalOrdinals = new LongBitSet(globalOrdinals.getValueCount()); if (includeValues != null) { for (BytesRef term : includeValues) { long ord = globalOrdinals.lookupTerm(term); if (ord >= 0) { acceptedGlobalOrdinals.set(ord); } } } else if (acceptedGlobalOrdinals.length() > 0) { // default to all terms being acceptable acceptedGlobalOrdinals.set(0, acceptedGlobalOrdinals.length()); } if (excludeValues != null) { for (BytesRef term : excludeValues) { long ord = globalOrdinals.lookupTerm(term); if (ord >= 0) { acceptedGlobalOrdinals.clear(ord); } } } return acceptedGlobalOrdinals; }
@Override public LongBitSet acceptedGlobalOrdinals(RandomAccessOrds globalOrdinals) throws IOException { LongBitSet acceptedGlobalOrdinals = new LongBitSet(globalOrdinals.getValueCount()); if (includeValues != null) { for (BytesRef term : includeValues) { long ord = globalOrdinals.lookupTerm(term); if (ord >= 0) { acceptedGlobalOrdinals.set(ord); } } } else if (acceptedGlobalOrdinals.length() > 0) { // default to all terms being acceptable acceptedGlobalOrdinals.set(0, acceptedGlobalOrdinals.length()); } if (excludeValues != null) { for (BytesRef term : excludeValues) { long ord = globalOrdinals.lookupTerm(term); if (ord >= 0) { acceptedGlobalOrdinals.clear(ord); } } } return acceptedGlobalOrdinals; }