public class MockIndexInputWrapper extends IndexInput
| Constructor and Description |
|---|
MockIndexInputWrapper(MockDirectoryWrapper dir,
String name,
IndexInput delegate)
Construct an empty output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
MockIndexInputWrapper |
clone() |
void |
close() |
long |
getFilePointer() |
long |
length() |
byte |
readByte() |
void |
readBytes(byte[] b,
int offset,
int len) |
void |
readBytes(byte[] b,
int offset,
int len,
boolean useBuffer) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
String |
readString() |
Set<String> |
readStringSet() |
Map<String,String> |
readStringStringMap() |
int |
readVInt() |
long |
readVLong() |
int |
readZInt() |
long |
readZLong() |
void |
seek(long pos) |
void |
skipBytes(long numBytes) |
IndexInput |
slice(String sliceDescription,
long offset,
long length) |
String |
toString() |
getFullSliceDescription, randomAccessSlicereadMapOfStrings, readSetOfStringspublic MockIndexInputWrapper(MockDirectoryWrapper dir, String name, IndexInput delegate)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class IndexInputIOExceptionpublic MockIndexInputWrapper clone()
clone in class IndexInputpublic IndexInput slice(String sliceDescription, long offset, long length) throws IOException
slice in class IndexInputIOExceptionpublic long getFilePointer()
getFilePointer in class IndexInputpublic void seek(long pos)
throws IOException
seek in class IndexInputIOExceptionpublic long length()
length in class IndexInputpublic byte readByte()
throws IOException
readByte in class DataInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
readBytes in class DataInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len,
boolean useBuffer)
throws IOException
readBytes in class DataInputIOExceptionpublic short readShort()
throws IOException
readShort in class DataInputIOExceptionpublic int readInt()
throws IOException
readInt in class DataInputIOExceptionpublic long readLong()
throws IOException
readLong in class DataInputIOExceptionpublic String readString() throws IOException
readString in class DataInputIOExceptionpublic Map<String,String> readStringStringMap() throws IOException
readStringStringMap in class DataInputIOExceptionpublic int readVInt()
throws IOException
readVInt in class DataInputIOExceptionpublic long readVLong()
throws IOException
readVLong in class DataInputIOExceptionpublic int readZInt()
throws IOException
readZInt in class DataInputIOExceptionpublic long readZLong()
throws IOException
readZLong in class DataInputIOExceptionpublic Set<String> readStringSet() throws IOException
readStringSet in class DataInputIOExceptionpublic void skipBytes(long numBytes)
throws IOException
skipBytes in class DataInputIOExceptionpublic String toString()
toString in class IndexInputCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.