Package org.elasticsearch.index.store
Class VerifyingIndexOutput
- java.lang.Object
-
- org.apache.lucene.store.DataOutput
-
- org.apache.lucene.store.IndexOutput
-
- org.elasticsearch.common.lucene.store.FilterIndexOutput
-
- org.elasticsearch.index.store.VerifyingIndexOutput
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public abstract class VerifyingIndexOutput extends FilterIndexOutput
abstract class for verifying what was written. subclasses overrideFilterIndexOutput.writeByte(byte)
andFilterIndexOutput.writeBytes(byte[], int, int)
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.common.lucene.store.FilterIndexOutput
out
-
-
Method Summary
Modifier and Type Method Description abstract void
verify()
Verifies the checksum and compares the written length with the expected file length.-
Methods inherited from class org.elasticsearch.common.lucene.store.FilterIndexOutput
close, getChecksum, getFilePointer, writeByte, writeBytes
-
-