@Override public void checkIntegrity() throws IOException { in.checkIntegrity(); } }
@Override public void checkIntegrity() throws IOException { for (FieldsProducer producer : formats.values()) { producer.checkIntegrity(); } }
/** Merges in the fields from the readers in * <code>mergeState</code>. The default implementation skips * and maps around deleted documents, and calls {@link #write(Fields)}. * Implementations can override this method for more sophisticated * merging (bulk-byte copying, etc). */ public void merge(MergeState mergeState) throws IOException { final List<Fields> fields = new ArrayList<>(); final List<ReaderSlice> slices = new ArrayList<>(); int docBase = 0; for(int readerIndex=0;readerIndex<mergeState.fieldsProducers.length;readerIndex++) { final FieldsProducer f = mergeState.fieldsProducers[readerIndex]; final int maxDoc = mergeState.maxDocs[readerIndex]; f.checkIntegrity(); slices.add(new ReaderSlice(docBase, maxDoc, readerIndex)); fields.add(f); docBase += maxDoc; } Fields mergedFields = new MappedMultiFields(mergeState, new MultiFields(fields.toArray(Fields.EMPTY_ARRAY), slices.toArray(ReaderSlice.EMPTY_ARRAY))); write(mergedFields); }
getPostingsReader().checkIntegrity();
@Override public void checkIntegrity() throws IOException { delegateProducer.checkIntegrity(); }
@Override public void checkIntegrity() throws IOException { delegateFieldsProducer.checkIntegrity(); // TODO: checkIntegrity should checksum the dictionary and index }
@Override public void checkIntegrity() throws IOException { in.checkIntegrity(); } }
@Override public void checkIntegrity() throws IOException { delegateFieldsProducer.checkIntegrity(); }
@Override public void checkIntegrity() throws IOException { delegateProducer.checkIntegrity(); }
@Override public void checkIntegrity() throws IOException { delegateProducer.checkIntegrity(); }
@Override public void checkIntegrity() throws IOException { for (FieldsProducer producer : formats.values()) { producer.checkIntegrity(); } }
@Override public void checkIntegrity() throws IOException { for (FieldsProducer producer : formats.values()) { producer.checkIntegrity(); } }
@Override public void checkIntegrity() throws IOException { for (FieldsProducer producer : formats.values()) { producer.checkIntegrity(); } }
@Override public void checkIntegrity() throws IOException { delegateFieldsProducer.checkIntegrity(); if (version >= BLOOM_CODEC_VERSION_CHECKSUM) { CodecUtil.checksumEntireFile(data); } }
/** Merges in the fields from the readers in * <code>mergeState</code>. The default implementation skips * and maps around deleted documents, and calls {@link #write(Fields)}. * Implementations can override this method for more sophisticated * merging (bulk-byte copying, etc). */ public void merge(MergeState mergeState) throws IOException { final List<Fields> fields = new ArrayList<>(); final List<ReaderSlice> slices = new ArrayList<>(); int docBase = 0; for(int readerIndex=0;readerIndex<mergeState.fieldsProducers.length;readerIndex++) { final FieldsProducer f = mergeState.fieldsProducers[readerIndex]; final int maxDoc = mergeState.maxDocs[readerIndex]; f.checkIntegrity(); slices.add(new ReaderSlice(docBase, maxDoc, readerIndex)); fields.add(f); docBase += maxDoc; } Fields mergedFields = new MappedMultiFields(mergeState, new MultiFields(fields.toArray(Fields.EMPTY_ARRAY), slices.toArray(ReaderSlice.EMPTY_ARRAY))); write(mergedFields); }
/** Merges in the fields from the readers in * <code>mergeState</code>. The default implementation skips * and maps around deleted documents, and calls {@link #write(Fields)}. * Implementations can override this method for more sophisticated * merging (bulk-byte copying, etc). */ public void merge(MergeState mergeState) throws IOException { final List<Fields> fields = new ArrayList<>(); final List<ReaderSlice> slices = new ArrayList<>(); int docBase = 0; for(int readerIndex=0;readerIndex<mergeState.fieldsProducers.length;readerIndex++) { final FieldsProducer f = mergeState.fieldsProducers[readerIndex]; final int maxDoc = mergeState.maxDocs[readerIndex]; f.checkIntegrity(); slices.add(new ReaderSlice(docBase, maxDoc, readerIndex)); fields.add(f); docBase += maxDoc; } Fields mergedFields = new MappedMultiFields(mergeState, new MultiFields(fields.toArray(Fields.EMPTY_ARRAY), slices.toArray(ReaderSlice.EMPTY_ARRAY))); write(mergedFields); }
/** Merges in the fields from the readers in * <code>mergeState</code>. The default implementation skips * and maps around deleted documents, and calls {@link #write(Fields)}. * Implementations can override this method for more sophisticated * merging (bulk-byte copying, etc). */ public void merge(MergeState mergeState) throws IOException { final List<Fields> fields = new ArrayList<>(); final List<ReaderSlice> slices = new ArrayList<>(); int docBase = 0; for(int readerIndex=0;readerIndex<mergeState.fieldsProducers.length;readerIndex++) { final FieldsProducer f = mergeState.fieldsProducers[readerIndex]; final int maxDoc = mergeState.maxDocs[readerIndex]; f.checkIntegrity(); slices.add(new ReaderSlice(docBase, maxDoc, readerIndex)); fields.add(f); docBase += maxDoc; } Fields mergedFields = new MappedMultiFields(mergeState, new MultiFields(fields.toArray(Fields.EMPTY_ARRAY), slices.toArray(ReaderSlice.EMPTY_ARRAY))); write(mergedFields); }
@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; } }
@Override public void checkIntegrity() throws IOException { ensureOpen(); // terms/postings getPostingsReader().checkIntegrity(); // norms if (getNormsReader() != null) { getNormsReader().checkIntegrity(); } // docvalues if (getDocValuesReader() != null) { getDocValuesReader().checkIntegrity(); } // stored fields if (getFieldsReader() != null) { getFieldsReader().checkIntegrity(); } // term vectors if (getTermVectorsReader() != null) { getTermVectorsReader().checkIntegrity(); } } }
@Override public void checkIntegrity() throws IOException { ensureOpen(); // terms/postings getPostingsReader().checkIntegrity(); // norms if (getNormsReader() != null) { getNormsReader().checkIntegrity(); } // docvalues if (getDocValuesReader() != null) { getDocValuesReader().checkIntegrity(); } // stored fields if (getFieldsReader() != null) { getFieldsReader().checkIntegrity(); } // term vectors if (getTermVectorsReader() != null) { getTermVectorsReader().checkIntegrity(); } } }