Package org.apache.lucene.store
Class ByteBuffersDirectory.FileEntry
- java.lang.Object
-
- org.apache.lucene.store.ByteBuffersDirectory.FileEntry
-
- Enclosing class:
- ByteBuffersDirectory
private final class ByteBuffersDirectory.FileEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private long
cachedLength
private IndexInput
content
private java.lang.String
fileName
-
Constructor Summary
Constructors Constructor Description FileEntry(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) IndexOutput
createOutput(java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> outputToInput)
long
length()
IndexInput
openInput()
-
-
-
Field Detail
-
fileName
private final java.lang.String fileName
-
content
private volatile IndexInput content
-
cachedLength
private volatile long cachedLength
-
-
Method Detail
-
length
public long length()
-
openInput
public IndexInput openInput() throws java.io.IOException
- Throws:
java.io.IOException
-
createOutput
final IndexOutput createOutput(java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> outputToInput) throws java.io.IOException
- Throws:
java.io.IOException
-
-