Module org.apache.lucene.core
Package org.apache.lucene.index
Class TrackingTmpOutputDirectoryWrapper
- java.lang.Object
-
- org.apache.lucene.store.Directory
-
- org.apache.lucene.store.FilterDirectory
-
- org.apache.lucene.index.TrackingTmpOutputDirectoryWrapper
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
final class TrackingTmpOutputDirectoryWrapper extends FilterDirectory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
fileNames
-
Fields inherited from class org.apache.lucene.store.FilterDirectory
in
-
-
Constructor Summary
Constructors Constructor Description TrackingTmpOutputDirectoryWrapper(Directory in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexOutput
createOutput(java.lang.String name, IOContext context)
Creates a new, empty file in the directory and returns anIndexOutput
instance for appending data to this file.java.util.Map<java.lang.String,java.lang.String>
getTemporaryFiles()
IndexInput
openInput(java.lang.String name, IOContext context)
Opens a stream for reading an existing file.-
Methods inherited from class org.apache.lucene.store.FilterDirectory
close, createTempOutput, deleteFile, ensureOpen, fileLength, getDelegate, getPendingDeletions, listAll, obtainLock, rename, sync, syncMetaData, toString, unwrap
-
Methods inherited from class org.apache.lucene.store.Directory
copyFrom, getTempFileName, openChecksumInput
-
-
-
-
Constructor Detail
-
TrackingTmpOutputDirectoryWrapper
TrackingTmpOutputDirectoryWrapper(Directory in)
-
-
Method Detail
-
createOutput
public IndexOutput createOutput(java.lang.String name, IOContext context) throws java.io.IOException
Description copied from class:Directory
Creates a new, empty file in the directory and returns anIndexOutput
instance for appending data to this file.This method must throw
FileAlreadyExistsException
if the file already exists.- Overrides:
createOutput
in classFilterDirectory
- Parameters:
name
- the name of the file to create.- Throws:
java.io.IOException
- in case of I/O error
-
openInput
public IndexInput openInput(java.lang.String name, IOContext context) throws java.io.IOException
Description copied from class:Directory
Opens a stream for reading an existing file.This method must throw either
NoSuchFileException
orFileNotFoundException
ifname
points to a non-existing file.- Overrides:
openInput
in classFilterDirectory
- Parameters:
name
- the name of an existing file.- Throws:
java.io.IOException
- in case of I/O error
-
getTemporaryFiles
public java.util.Map<java.lang.String,java.lang.String> getTemporaryFiles()
-
-