Class BufferedIndexOutput
Base implementation class for buffered IndexOutput.
Implements
IDisposable
Inherited Members
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
public BufferedIndexOutput()
BufferedIndexOutput(Int32)
Creates a new BufferedIndexOutput with the given buffer size.
Declaration
public BufferedIndexOutput(int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bufferSize | the buffer size in bytes used to buffer writes internally. |
Fields
| Improve this Doc View SourceDEFAULT_BUFFER_SIZE
The default buffer size in bytes (DEFAULT_BUFFER_SIZE).
Declaration
public const int DEFAULT_BUFFER_SIZE = null
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
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceFlush()
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 |
GetFilePointer()
Declaration
public override long GetFilePointer()
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceSeek(Int64)
Declaration
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
IDisposable