public class CorruptingIndexOutput extends IndexOutput
| Modifier and Type | Field and Description |
|---|---|
protected IndexOutput |
out |
| Constructor and Description |
|---|
CorruptingIndexOutput(Directory dir,
long byteToCorrupt,
IndexOutput out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
corruptFile() |
long |
getChecksum() |
long |
getFilePointer() |
String |
getName() |
String |
toString() |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int length) |
copyBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLongprotected final IndexOutput out
public CorruptingIndexOutput(Directory dir, long byteToCorrupt, IndexOutput out)
public String getName()
getName in class IndexOutputpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class IndexOutputIOExceptionprotected void corruptFile()
throws IOException
IOExceptionpublic long getFilePointer()
getFilePointer in class IndexOutputpublic long getChecksum()
throws IOException
getChecksum in class IndexOutputIOExceptionpublic String toString()
toString in class IndexOutputpublic void writeByte(byte b)
throws IOException
writeByte in class DataOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
writeBytes in class DataOutputIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.