Class Directory.IndexInputSlicer
Allows to create one or more sliced IndexInput instances from a single file handle. Some Directory implementations may be able to efficiently map slices of a file into memory when only certain parts of a file are required.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Note
This API is experimental and might change in incompatible ways in the next release.
Implements
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public abstract class Directory.IndexInputSlicer : IDisposable
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Allows to create one or more sliced IndexInput instances from a single file handle. Some Directory implementations may be able to efficiently map slices of a file into memory when only certain parts of a file are required.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
protected abstract void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
OpenFullSlice()
Returns an IndexInput slice starting at offset 0
with a
length equal to the length of the underlying file
Declaration
[Obsolete("Only for reading CFS files from 3.x indexes.")]
public abstract IndexInput OpenFullSlice()
Returns
Type | Description |
---|---|
IndexInput |
OpenSlice(string, long, long)
Returns an IndexInput slice starting at the given offset with the given length.
Declaration
public abstract IndexInput OpenSlice(string sliceDescription, long offset, long length)
Parameters
Type | Name | Description |
---|---|---|
string | sliceDescription | |
long | offset | |
long | length |
Returns
Type | Description |
---|---|
IndexInput |