Package org.apache.lucene.tests.store
Class MockIndexInputWrapper
java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.lucene.store.FilterIndexInput
org.apache.lucene.tests.store.MockIndexInputWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been closed.
-
Field Summary
Fields inherited from class org.apache.lucene.store.FilterIndexInput
in -
Constructor Summary
ConstructorsConstructorDescriptionMockIndexInputWrapper(MockDirectoryWrapper dir, String name, IndexInput delegate, MockIndexInputWrapper parent, ReadAdvice readAdvice, boolean confined) Sole constructor -
Method Summary
Modifier and TypeMethodDescriptionclone()voidclose()longisLoaded()longlength()voidprefetch(long offset, long length) bytereadByte()voidreadBytes(byte[] b, int offset, int len) voidreadBytes(byte[] b, int offset, int len, boolean useBuffer) voidreadFloats(float[] floats, int offset, int len) intreadInt()longreadLong()shortintreadVInt()longintreadZInt()longvoidseek(long pos) voidskipBytes(long numBytes) slice(String sliceDescription, long offset, long length, ReadAdvice readAdvice) toString()voidupdateReadAdvice(ReadAdvice readAdvice) Methods inherited from class org.apache.lucene.store.FilterIndexInput
getDelegate, unwrap, unwrapOnlyTestMethods inherited from class org.apache.lucene.store.IndexInput
getFullSliceDescription, randomAccessSliceMethods inherited from class org.apache.lucene.store.DataInput
readGroupVInt, readInts, readLongs
-
Constructor Details
-
MockIndexInputWrapper
public MockIndexInputWrapper(MockDirectoryWrapper dir, String name, IndexInput delegate, MockIndexInputWrapper parent, ReadAdvice readAdvice, boolean confined) Sole constructor
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterIndexInput- Throws:
IOException
-
clone
- Overrides:
clonein classIndexInput
-
slice
- Overrides:
slicein classFilterIndexInput- Throws:
IOException
-
slice
public IndexInput slice(String sliceDescription, long offset, long length, ReadAdvice readAdvice) throws IOException - Overrides:
slicein classIndexInput- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Overrides:
getFilePointerin classFilterIndexInput
-
seek
- Overrides:
seekin classFilterIndexInput- Throws:
IOException
-
prefetch
- Overrides:
prefetchin classIndexInput- Throws:
IOException
-
isLoaded
- Overrides:
isLoadedin classIndexInput
-
updateReadAdvice
- Overrides:
updateReadAdvicein classIndexInput- Throws:
IOException
-
length
public long length()- Overrides:
lengthin classFilterIndexInput
-
readByte
- Overrides:
readBytein classFilterIndexInput- Throws:
IOException
-
readBytes
- Overrides:
readBytesin classFilterIndexInput- Throws:
IOException
-
readBytes
- Overrides:
readBytesin classDataInput- Throws:
IOException
-
readFloats
- Overrides:
readFloatsin classDataInput- Throws:
IOException
-
readShort
- Overrides:
readShortin classDataInput- Throws:
IOException
-
readInt
- Overrides:
readIntin classDataInput- Throws:
IOException
-
readLong
- Overrides:
readLongin classDataInput- Throws:
IOException
-
readString
- Overrides:
readStringin classDataInput- Throws:
IOException
-
readVInt
- Overrides:
readVIntin classDataInput- Throws:
IOException
-
readVLong
- Overrides:
readVLongin classDataInput- Throws:
IOException
-
readZInt
- Overrides:
readZIntin classDataInput- Throws:
IOException
-
readZLong
- Overrides:
readZLongin classDataInput- Throws:
IOException
-
skipBytes
- Overrides:
skipBytesin classIndexInput- Throws:
IOException
-
readMapOfStrings
- Overrides:
readMapOfStringsin classDataInput- Throws:
IOException
-
readSetOfStrings
- Overrides:
readSetOfStringsin classDataInput- Throws:
IOException
-
toString
- Overrides:
toStringin classIndexInput
-