Class BufferedIndexOutput
Base implementation class for buffered IndexOutput.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public abstract class BufferedIndexOutput : IndexOutput, IDisposable
Constructors
| Improve this Doc View SourceBufferedIndexOutput()
Creates a new BufferedIndexOutput with the default buffer size (DEFAULT_BUFFER_SIZE bytes see DEFAULT_BUFFER_SIZE)
Declaration
protected BufferedIndexOutput()
BufferedIndexOutput(Int32)
Creates a new BufferedIndexOutput with the given buffer size.
Declaration
protected BufferedIndexOutput(int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bufferSize | the buffer size in bytes used to buffer writes internally. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | if the given buffer size is less or equal to |
Fields
| Improve this Doc View SourceDEFAULT_BUFFER_SIZE
The default buffer size in bytes (DEFAULT_BUFFER_SIZE).
Declaration
public const int DEFAULT_BUFFER_SIZE = 16384
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceBufferSize
Returns size of the used output buffer in bytes.
Declaration
public int BufferSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Checksum
Declaration
public override long Checksum { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceLength
Declaration
public abstract override long Length { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourcePosition
Declaration
public override long Position { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
Methods
| Improve this Doc View SourceDispose(Boolean)
Closes this stream to further operations.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceFlush()
Forces any buffered output to be written.
Declaration
public override void Flush()
Overrides
| Improve this Doc View SourceFlushBuffer(Byte[], Int32, Int32)
Expert: implements buffer write. Writes bytes at the current position in the output.
Declaration
protected abstract void FlushBuffer(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | the bytes to write |
System.Int32 | offset | the offset in the byte array |
System.Int32 | len | the number of bytes to write |
Seek(Int64)
Declaration
[Obsolete("(4.1) this method will be removed in Lucene 5.0")]
public override void Seek(long pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | pos |
Overrides
| Improve this Doc View SourceWriteByte(Byte)
Declaration
public override void WriteByte(byte b)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | b |
Overrides
| Improve this Doc View SourceWriteBytes(Byte[], Int32, Int32)
Declaration
public override void WriteBytes(byte[] b, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | |
System.Int32 | offset | |
System.Int32 | length |
Overrides
Implements
System.IDisposable