/** Sole constructor */ VerifyingIndexOutput(IndexOutput out) { super("VerifyingIndexOutput(out=" + out.toString() + ")", out); }
numOpenOutputs++; return new FilterIndexOutput(out.toString(), out) { @Override public void writeBytes(byte[] b, int length) throws IOException {
/** Sole constructor */ VerifyingIndexOutput(IndexOutput out) { super("VerifyingIndexOutput(out=" + out.toString() + ")", out); }
/** Sole constructor */ VerifyingIndexOutput(IndexOutput out) { super("VerifyingIndexOutput(out=" + out.toString() + ")", out); }
/** Sole constructor */ VerifyingIndexOutput(IndexOutput out) { super("VerifyingIndexOutput(out=" + out.toString() + ")", out); }
/** Sole constructor */ VerifyingIndexOutput(IndexOutput out) { super("VerifyingIndexOutput(out=" + out.toString() + ")", out); }
numOpenOutputs++; return new FilterIndexOutput(out.toString(), out) { @Override public void writeBytes(byte[] b, int length) throws IOException {
numOpenOutputs++; return new FilterIndexOutput(out.toString(), out) { @Override public void writeBytes(byte[] b, int length) throws IOException {
public IndexOutputDelegate(IndexOutput delegate) { super( "Testing Delegate: " + delegate.toString() ); this.delegate = delegate; }
DirectCFSIndexOutput(IndexOutput delegate, FileEntry entry, boolean isSeparate) { super("DirectCFSIndexOutput("+delegate.toString()+",entry=\""+entry.toString()+"\",isSeparate=\""+isSeparate+")"); this.delegate = delegate; this.entry = entry; entry.offset = offset = delegate.getFilePointer(); this.isSeparate = isSeparate; }
@Override public String toString() { return "IndexOutputDelegate to " + delegate.toString(); }
@Override public void finish(FieldInfos fis, int numDocs) throws IOException { if (numDocsWritten != numDocs) { throw new RuntimeException("mergeVectors produced an invalid result: mergedDocs is " + numDocs + " but vec numDocs is " + numDocsWritten + " file=" + out.toString() + "; now aborting this merge to prevent index corruption"); } write(END); newLine(); SimpleTextUtil.writeChecksum(out, scratch); }
@Override public void finish(FieldInfos fis, int numDocs) throws IOException { if (numDocsWritten != numDocs) { throw new RuntimeException("mergeFields produced an invalid result: docCount is " + numDocs + " but only saw " + numDocsWritten + " file=" + out.toString() + "; now aborting this merge to prevent index corruption"); } write(END); newLine(); SimpleTextUtil.writeChecksum(out, scratch); }