Class RAMOutputStream
A memory-resident IndexOutput implementation.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
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 class RAMOutputStream : IndexOutput, IDisposable
Constructors
| Improve this Doc View SourceRAMOutputStream()
Construct an empty output buffer.
Declaration
public RAMOutputStream()
RAMOutputStream(RAMFile)
Declaration
public RAMOutputStream(RAMFile f)
Parameters
| Type | Name | Description |
|---|---|---|
| RAMFile | f |
Properties
| Improve this Doc View SourceChecksum
Declaration
public override long Checksum { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Overrides
| Improve this Doc View SourceLength
Declaration
public override long Length { get; set; }
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)
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 SourceGetSizeInBytes()
Returns byte usage of all buffers.
Declaration
public virtual long GetSizeInBytes()
Returns
| Type | Description |
|---|---|
| System.Int64 |
Reset()
Resets this to an empty file.
Declaration
public virtual void Reset()
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 len)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | b | |
| System.Int32 | offset | |
| System.Int32 | len |
Overrides
| Improve this Doc View SourceWriteTo(DataOutput)
Copy the current contents of this buffer to the named output.
Declaration
public virtual void WriteTo(DataOutput out)
Parameters
| Type | Name | Description |
|---|---|---|
| DataOutput | out |
WriteTo(Byte[], Int32)
Copy the current contents of this buffer to output byte array
Declaration
public virtual void WriteTo(byte[] bytes, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | bytes | |
| System.Int32 | offset |
Implements
System.IDisposable