String segmentSuffix = getSuffix(formatName, suffix); if (!formats.containsKey(segmentSuffix)) { formats.put(segmentSuffix, format.fieldsProducer(new SegmentReadState(readState, segmentSuffix)));
final PostingsFormat format = codec.postingsFormat(); fields = format.fieldsProducer(segmentReadState); assert fields != null;
String segmentSuffix = getSuffix(formatName, suffix); if (!formats.containsKey(segmentSuffix)) { formats.put(segmentSuffix, format.fieldsProducer(new SegmentReadState(readState, segmentSuffix)));
String segmentSuffix = getSuffix(formatName, suffix); if (!formats.containsKey(segmentSuffix)) { formats.put(segmentSuffix, format.fieldsProducer(new SegmentReadState(readState, segmentSuffix)));
String segmentSuffix = getSuffix(formatName, suffix); if (!formats.containsKey(segmentSuffix)) { formats.put(segmentSuffix, format.fieldsProducer(new SegmentReadState(readState, segmentSuffix)));
@Override public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException { FieldsProducer postings = PostingsFormat.forName("Lucene50").fieldsProducer(state); if (state.context.context != IOContext.Context.MERGE) { FieldsProducer loadedPostings; try { postings.checkIntegrity(); loadedPostings = new DirectFields(state, postings, minSkipCount, lowFreqCutoff); } finally { postings.close(); } return loadedPostings; } else { // Don't load postings for merge: return postings; } }
delegateProducer = delegatePostingsFormat.fieldsProducer(state);
public BloomFilteredFieldsProducer(SegmentReadState state) throws IOException { final String bloomFileName = IndexFileNames.segmentFileName( state.segmentInfo.name, state.segmentSuffix, BLOOM_EXTENSION); final Directory directory = state.directory; IndexInput dataInput = directory.openInput(bloomFileName, state.context); try { ChecksumIndexInput bloomIn = new BufferedChecksumIndexInput(dataInput.clone()); version = CodecUtil.checkHeader(bloomIn, BLOOM_CODEC_NAME, BLOOM_CODEC_VERSION, BLOOM_CODEC_VERSION_CURRENT); // // Load the hash function used in the BloomFilter // hashFunction = HashFunction.forName(bloomIn.readString()); // Load the delegate postings format final String delegatePostings = bloomIn.readString(); this.delegateFieldsProducer = PostingsFormat.forName(delegatePostings) .fieldsProducer(state); this.data = dataInput; dataInput = null; // null it out such that we don't close it } finally { IOUtils.closeWhileHandlingException(dataInput); } }
delegateProducer = delegatePostingsFormat.fieldsProducer(state);
delegateProducer = delegatePostingsFormat.fieldsProducer(state);
.fieldsProducer(state); int numBlooms = bloomIn.readInt(); for (int i = 0; i < numBlooms; i++) {
delegateFieldsProducer = delegatePostingsFormat.fieldsProducer(state);
final PostingsFormat format = codec.postingsFormat(); fields = format.fieldsProducer(segmentReadState); assert fields != null;
final PostingsFormat format = codec.postingsFormat(); fields = format.fieldsProducer(segmentReadState); assert fields != null;
final PostingsFormat format = codec.postingsFormat(); fields = format.fieldsProducer(segmentReadState); assert fields != null;