public class MockIndexOutputWrapper extends IndexOutput
| Constructor and Description |
|---|
MockIndexOutputWrapper(MockDirectoryWrapper dir,
IndexOutput delegate,
String name)
Construct an empty output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyBytes(DataInput input,
long numBytes) |
void |
flush() |
long |
getChecksum() |
long |
getFilePointer() |
long |
length() |
void |
seek(long pos) |
void |
setLength(long length) |
String |
toString() |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int len) |
writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLongpublic MockIndexOutputWrapper(MockDirectoryWrapper dir, IndexOutput delegate, String name)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class IndexOutputIOExceptionpublic void flush()
throws IOException
flush in class IndexOutputIOExceptionpublic void writeByte(byte b)
throws IOException
writeByte in class DataOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int len)
throws IOException
writeBytes in class DataOutputIOExceptionpublic long getFilePointer()
getFilePointer in class IndexOutputpublic void seek(long pos)
throws IOException
seek in class IndexOutputIOExceptionpublic long length()
throws IOException
length in class IndexOutputIOExceptionpublic void setLength(long length)
throws IOException
setLength in class IndexOutputIOExceptionpublic void copyBytes(DataInput input, long numBytes) throws IOException
copyBytes in class DataOutputIOExceptionpublic long getChecksum()
throws IOException
getChecksum in class IndexOutputIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.