Class EmptyIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
com.apple.foundationdb.record.lucene.directory.EmptyIndexOutput
- All Implemented Interfaces:
Closeable,AutoCloseable
public class EmptyIndexOutput
extends org.apache.lucene.store.IndexOutput
An output that is used to cause file references to exist, but doesn't actually allow writing.
This could just use an FDBIndexOutput and never actually write anything, but this helps fail earlier in
cases where we never expect to write anything.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmptyIndexOutput(String resourceDescription, String name, FDBDirectory fdbDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longlongvoidwriteByte(byte b) voidwriteBytes(byte[] b, int offset, int length) Methods inherited from class org.apache.lucene.store.IndexOutput
getName, toStringMethods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
EmptyIndexOutput
protected EmptyIndexOutput(String resourceDescription, String name, FDBDirectory fdbDirectory) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.IndexOutput- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexOutput
-
getChecksum
public long getChecksum()- Specified by:
getChecksumin classorg.apache.lucene.store.IndexOutput
-
writeByte
- Specified by:
writeBytein classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-