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, writeZLong
protected final IndexOutput out
public CorruptingIndexOutput(Directory dir, long byteToCorrupt, IndexOutput out)
public String getName()
getName
in class IndexOutput
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class IndexOutput
IOException
protected void corruptFile() throws IOException
IOException
public long getFilePointer()
getFilePointer
in class IndexOutput
public long getChecksum() throws IOException
getChecksum
in class IndexOutput
IOException
public String toString()
toString
in class IndexOutput
public void writeByte(byte b) throws IOException
writeByte
in class DataOutput
IOException
public void writeBytes(byte[] b, int offset, int length) throws IOException
writeBytes
in class DataOutput
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.