Class FDBIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
com.apple.foundationdb.record.lucene.directory.FDBIndexOutput
- All Implemented Interfaces:
Closeable,AutoCloseable
Implementation of IndexOutput representing the writing of data
in Lucene to a file.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFDBIndexOutput(String name, FDBDirectory fdbDirectory) Create an FDBIndexOutput given a name and FDBDirectory.FDBIndexOutput(String resourceDescription, String name, FDBDirectory fdbDirectory) Create an FDBIndexOutput given a resource description, name, and FDBDirectory. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the directory which writes the FileReference.voidcopyBytes(org.apache.lucene.store.DataInput input, long numBytes) longlongvoidwriteByte(byte b) voidwriteBytes(byte[] bytes, int offset, int length) This method will be called many times.Methods inherited from class org.apache.lucene.store.IndexOutput
getName, toStringMethods inherited from class org.apache.lucene.store.DataOutput
writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
FDBIndexOutput
Create an FDBIndexOutput given a name and FDBDirectory.- Parameters:
name- name of resourcefdbDirectory- existing FDBDirectory- Throws:
IOException
-
FDBIndexOutput
public FDBIndexOutput(@Nonnull String resourceDescription, @Nonnull String name, @Nonnull FDBDirectory fdbDirectory) throws IOException Create an FDBIndexOutput given a resource description, name, and FDBDirectory.- Parameters:
resourceDescription- opaque description of file; used for loggingname- name of resourcefdbDirectory- existing FDBDirectory- Throws:
IOException
-
-
Method Details
-
close
Close the directory which writes the FileReference.- 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
-
copyBytes
public void copyBytes(@Nonnull org.apache.lucene.store.DataInput input, long numBytes) throws IOException - Overrides:
copyBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeBytes
This method will be called many times.- Specified by:
writeBytesin classorg.apache.lucene.store.DataOutput- Parameters:
bytes- bytes to writeoffset- offsetlength- length- Throws:
IOException
-