Package org.apache.lucene.store
Class IOContext
- java.lang.Object
-
- org.apache.lucene.store.IOContext
-
public class IOContext extends java.lang.Object
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to eitherDirectory.openInput(String, IOContext)
orDirectory.createOutput(String, IOContext)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IOContext.Context
Context is a enumerator which specifies the context in which the Directory is being used for.
-
Constructor Summary
Constructors Constructor Description IOContext()
IOContext(FlushInfo flushInfo)
IOContext(IOContext.Context context)
IOContext(IOContext ctxt, boolean readOnce)
This constructor is used to initialize aIOContext
instance with a new value for the readOnce variable.IOContext(MergeInfo mergeInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
context
public final IOContext.Context context
An object of a enumerator Context type
-
mergeInfo
public final MergeInfo mergeInfo
-
flushInfo
public final FlushInfo flushInfo
-
readOnce
public final boolean readOnce
-
DEFAULT
public static final IOContext DEFAULT
-
READONCE
public static final IOContext READONCE
-
READ
public static final IOContext READ
-
-
Constructor Detail
-
IOContext
public IOContext()
-
IOContext
public IOContext(FlushInfo flushInfo)
-
IOContext
public IOContext(IOContext.Context context)
-
IOContext
public IOContext(MergeInfo mergeInfo)
-
-