public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, ReverseTermsIndex index, IndexInput data) throws IOException { this.maxTermLength = bytes.maxLength; this.numValues = bytes.count; this.addresses = addresses; this.numIndexValues = addresses.size(); this.data = data; this.reverseTerms = index.terms; this.reverseAddresses = index.termAddresses; this.numReverseIndexValues = reverseAddresses.size(); this.termsEnum = getTermsEnum(data); }
@Override public String toString() { return getClass().getSimpleName() + "(size=" + termAddresses.size() + ")"; } }
@Override public String toString() { return getClass().getSimpleName() + "(size=" + termAddresses.size() + ")"; } }
@Override public String toString() { return getClass().getSimpleName() + "(size=" + termAddresses.size() + ")"; } }
public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, ReverseTermsIndex index, IndexInput data) throws IOException { this.maxTermLength = bytes.maxLength; this.numValues = bytes.count; this.addresses = addresses; this.numIndexValues = addresses.size(); this.data = data; this.reverseTerms = index.terms; this.reverseAddresses = index.termAddresses; this.numReverseIndexValues = reverseAddresses.size(); this.termsEnum = getTermsEnum(data); }
@Override public String toString() { return getClass().getSimpleName() + "(size=" + termAddresses.size() + ")"; } }
public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, ReverseTermsIndex index, IndexInput data) throws IOException { this.maxTermLength = bytes.maxLength; this.numValues = bytes.count; this.addresses = addresses; this.numIndexValues = addresses.size(); this.data = data; this.reverseTerms = index.terms; this.reverseAddresses = index.termAddresses; this.numReverseIndexValues = reverseAddresses.size(); this.termsEnum = getTermsEnum(data); }
public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, ReverseTermsIndex index, IndexInput data) throws IOException { this.maxTermLength = bytes.maxLength; this.numValues = bytes.count; this.addresses = addresses; this.numIndexValues = addresses.size(); this.data = data; this.reverseTerms = index.terms; this.reverseAddresses = index.termAddresses; this.numReverseIndexValues = reverseAddresses.size(); this.termsEnum = getTermsEnum(data); }
@Override public String toString() { return getClass().getSimpleName() + "(size=" + termAddresses.size() + ")"; } }
public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, ReverseTermsIndex index, IndexInput data) throws IOException { this.maxTermLength = bytes.maxLength; this.numValues = bytes.count; this.addresses = addresses; this.numIndexValues = addresses.size(); this.data = data; this.reverseTerms = index.terms; this.reverseAddresses = index.termAddresses; this.numReverseIndexValues = reverseAddresses.size(); this.termsEnum = getTermsEnum(data); }
public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, IndexInput data) throws IOException { this.bytes = bytes; this.interval = bytes.addressInterval; this.addresses = addresses; this.data = data; this.numValues = bytes.count; this.numIndexValues = addresses.size(); this.termsEnum = getTermsEnum(data); }
public CompressedBinaryDocValues(BinaryEntry bytes, MonotonicBlockPackedReader addresses, IndexInput data) throws IOException { this.bytes = bytes; this.interval = bytes.addressInterval; this.addresses = addresses; this.data = data; this.numValues = bytes.count; this.numIndexValues = addresses.size(); this.termsEnum = getTermsEnum(data); }
private BinaryDocValues getCompressedBinary(FieldInfo field, final BinaryEntry bytes) throws IOException { final MonotonicBlockPackedReader addresses = getIntervalInstance(field, bytes); final ReverseTermsIndex index = getReverseIndexInstance(field, bytes); assert addresses.size() > 0; // we don't have to handle empty case IndexInput slice = data.slice("terms", bytes.offset, bytes.addressesOffset - bytes.offset); return new CompressedBinaryDocValues(bytes, addresses, index, slice); }
private BinaryDocValues getCompressedBinary(FieldInfo field, final BinaryEntry bytes) throws IOException { final MonotonicBlockPackedReader addresses = getIntervalInstance(field, bytes); final ReverseTermsIndex index = getReverseIndexInstance(field, bytes); assert addresses.size() > 0; // we don't have to handle empty case IndexInput slice = data.slice("terms", bytes.offset, bytes.addressesOffset - bytes.offset); return new CompressedBinaryDocValues(bytes, addresses, index, slice); }
private LegacyBinaryDocValues getCompressedBinary(FieldInfo field, final BinaryEntry bytes) throws IOException { final MonotonicBlockPackedReader addresses = getIntervalInstance(field, bytes); final ReverseTermsIndex index = getReverseIndexInstance(field, bytes); assert addresses.size() > 0; // we don't have to handle empty case IndexInput slice = data.slice("terms", bytes.offset, bytes.addressesOffset - bytes.offset); return new CompressedBinaryDocValues(bytes, addresses, index, slice); }
private BinaryDocValues getCompressedBinary(FieldInfo field, final BinaryEntry bytes) throws IOException { final MonotonicBlockPackedReader addresses = getIntervalInstance(field, bytes); final ReverseTermsIndex index = getReverseIndexInstance(field, bytes); assert addresses.size() > 0; // we don't have to handle empty case IndexInput slice = data.slice("terms", bytes.offset, bytes.addressesOffset - bytes.offset); return new CompressedBinaryDocValues(bytes, addresses, index, slice); }
private BinaryDocValues getCompressedBinary(FieldInfo field, final BinaryEntry bytes) throws IOException { final MonotonicBlockPackedReader addresses = getIntervalInstance(field, bytes); final ReverseTermsIndex index = getReverseIndexInstance(field, bytes); assert addresses.size() > 0; // we don't have to handle empty case IndexInput slice = data.slice("terms", bytes.offset, bytes.addressesOffset - bytes.offset); return new CompressedBinaryDocValues(bytes, addresses, index, slice); }
MonotonicBlockPackedReader live = MonotonicBlockPackedReader.of(data, packedIntsVersion, blockSize, entry.count, true); final SparseFixedBitSet set = new SparseFixedBitSet(maxDoc); for (int i = 0; i < live.size(); i++) { int doc = (int) live.get(i); set.set(doc);