private void mergeTerms(SegmentWriteState segmentWriteState) throws IOException { try (FieldsConsumer consumer = codec.postingsFormat().fieldsConsumer(segmentWriteState)) { consumer.merge(mergeState); } } }
private void mergeNorms(SegmentWriteState segmentWriteState) throws IOException { try (NormsConsumer consumer = codec.normsFormat().normsConsumer(segmentWriteState)) { consumer.merge(mergeState); } }
private void mergePoints(SegmentWriteState segmentWriteState) throws IOException { try (PointsWriter writer = codec.pointsFormat().fieldsWriter(segmentWriteState)) { writer.merge(mergeState); } }
@Override public void checkIntegrity() throws IOException { // term dictionary CodecUtil.checksumEntireFile(termsIn); // postings postingsReader.checkIntegrity(); }
private void mergeDocValues(SegmentWriteState segmentWriteState) throws IOException { try (DocValuesConsumer consumer = codec.docValuesFormat().fieldsConsumer(segmentWriteState)) { consumer.merge(mergeState); } }
/** * Merge stored fields from each of the segments into the new one. * @return The number of documents in all of the readers * @throws CorruptIndexException if the index is corrupt * @throws IOException if there is a low-level IO error */ private int mergeFields() throws IOException { try (StoredFieldsWriter fieldsWriter = codec.storedFieldsFormat().fieldsWriter(directory, mergeState.segmentInfo, context)) { return fieldsWriter.merge(mergeState); } }
/** * Merge the TermVectors from each of the segments into the new one. * @throws IOException if there is a low-level IO error */ private int mergeVectors() throws IOException { try (TermVectorsWriter termVectorsWriter = codec.termVectorsFormat().vectorsWriter(directory, mergeState.segmentInfo, context)) { return termVectorsWriter.merge(mergeState); } }
@Override public void checkIntegrity() throws IOException { if (docIn != null) { CodecUtil.checksumEntireFile(docIn); } if (posIn != null) { CodecUtil.checksumEntireFile(posIn); } if (payIn != null) { CodecUtil.checksumEntireFile(payIn); } }
@Override public void checkIntegrity() throws IOException { for (DocValuesProducer producer : dvProducers) { producer.checkIntegrity(); } }
@Override public void checkIntegrity() throws IOException { in.checkIntegrity(); } }
@Override public CompoundFormat compoundFormat() { return delegate.compoundFormat(); }
public IntersectTermsEnumFrame(IntersectTermsEnum ite, int ord) throws IOException { this.ite = ite; this.ord = ord; this.termState = ite.fr.parent.postingsReader.newTermState(); this.termState.totalTermFreq = -1; this.longs = new long[ite.fr.longsSize]; }
@Override public String toString() { return super.toString() + " docStartFP=" + docStartFP + " posStartFP=" + posStartFP + " payStartFP=" + payStartFP + " lastPosBlockOffset=" + lastPosBlockOffset + " singletonDocID=" + singletonDocID; } }
@Override public void close() throws IOException { consumer.close(); } }
@Override public PostingsFormat postingsFormat() { return delegate.postingsFormat(); }
@Override public BytesRef apply(int i) { reader.getValue(from + i, scratchBytesRef1); return scratchBytesRef1; } };
@Override public long estimatePointCount(IntersectVisitor visitor) { return in.estimatePointCount(visitor); }