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, randomAccessSlice
readMapOfStrings, readSetOfStrings
public MockIndexInputWrapper(MockDirectoryWrapper dir, String name, IndexInput delegate)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class IndexInput
IOException
public MockIndexInputWrapper clone()
clone
in class IndexInput
public IndexInput slice(String sliceDescription, long offset, long length) throws IOException
slice
in class IndexInput
IOException
public long getFilePointer()
getFilePointer
in class IndexInput
public void seek(long pos) throws IOException
seek
in class IndexInput
IOException
public long length()
length
in class IndexInput
public byte readByte() throws IOException
readByte
in class DataInput
IOException
public void readBytes(byte[] b, int offset, int len) throws IOException
readBytes
in class DataInput
IOException
public void readBytes(byte[] b, int offset, int len, boolean useBuffer) throws IOException
readBytes
in class DataInput
IOException
public short readShort() throws IOException
readShort
in class DataInput
IOException
public int readInt() throws IOException
readInt
in class DataInput
IOException
public long readLong() throws IOException
readLong
in class DataInput
IOException
public String readString() throws IOException
readString
in class DataInput
IOException
public Map<String,String> readStringStringMap() throws IOException
readStringStringMap
in class DataInput
IOException
public int readVInt() throws IOException
readVInt
in class DataInput
IOException
public long readVLong() throws IOException
readVLong
in class DataInput
IOException
public int readZInt() throws IOException
readZInt
in class DataInput
IOException
public long readZLong() throws IOException
readZLong
in class DataInput
IOException
public Set<String> readStringSet() throws IOException
readStringSet
in class DataInput
IOException
public void skipBytes(long numBytes) throws IOException
skipBytes
in class DataInput
IOException
public String toString()
toString
in class IndexInput
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.