Class IOContext
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public class IOContext
Constructors
IOContext()
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public IOContext()
IOContext(FlushInfo)
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public IOContext(FlushInfo flushInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| FlushInfo | flushInfo |
IOContext(IOContext, bool)
This constructor is used to initialize a IOContext instance with a new value for the ReadOnce property.
Declaration
public IOContext(IOContext ctxt, bool readOnce)
Parameters
| Type | Name | Description |
|---|---|---|
| IOContext | ctxt | IOContext object whose information is used to create the new instance except the ReadOnce property. |
| bool | readOnce |
IOContext(UsageContext)
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public IOContext(IOContext.UsageContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IOContext.UsageContext | context |
IOContext(MergeInfo)
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public IOContext(MergeInfo mergeInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| MergeInfo | mergeInfo |
Fields
DEFAULT
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public static readonly IOContext DEFAULT
Field Value
| Type | Description |
|---|---|
| IOContext |
READ
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public static readonly IOContext READ
Field Value
| Type | Description |
|---|---|
| IOContext |
READ_ONCE
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public static readonly IOContext READ_ONCE
Field Value
| Type | Description |
|---|---|
| IOContext |
Properties
Context
A IOContext.UsageContext setting
Declaration
public IOContext.UsageContext Context { get; }
Property Value
| Type | Description |
|---|---|
| IOContext.UsageContext |
FlushInfo
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public FlushInfo FlushInfo { get; }
Property Value
| Type | Description |
|---|---|
| FlushInfo |
MergeInfo
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public MergeInfo MergeInfo { get; }
Property Value
| Type | Description |
|---|---|
| MergeInfo |
ReadOnce
IOContext holds additional details on the merge/search context. A IOContext object can never be initialized as null as passed as a parameter to either OpenInput(string, IOContext) or CreateOutput(string, IOContext)
Declaration
public bool ReadOnce { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |