Class AbstractBlockPackedWriter
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.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public abstract class AbstractBlockPackedWriter
Constructors
| Improve this Doc View SourceAbstractBlockPackedWriter(DataOutput, Int32)
Sole constructor.
Declaration
public AbstractBlockPackedWriter(DataOutput out, int blockSize)
Parameters
Type | Name | Description |
---|---|---|
DataOutput | out | |
System.Int32 | blockSize | the number of values of a single block, must be a multiple of |
Fields
| Improve this Doc View Sourcem_blocks
Declaration
protected byte[] m_blocks
Field Value
Type | Description |
---|---|
System.Byte[] |
m_finished
Declaration
protected bool m_finished
Field Value
Type | Description |
---|---|
System.Boolean |
m_off
Declaration
protected int m_off
Field Value
Type | Description |
---|---|
System.Int32 |
m_ord
Declaration
protected long m_ord
Field Value
Type | Description |
---|---|
System.Int64 |
m_out
Declaration
protected DataOutput m_out
Field Value
Type | Description |
---|---|
DataOutput |
m_values
Declaration
protected readonly long[] m_values
Field Value
Type | Description |
---|---|
System.Int64[] |
Properties
| Improve this Doc View SourceOrd
Return the number of values which have been added.
Declaration
public virtual long Ord { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceAdd(Int64)
Append a new long.
Declaration
public virtual void Add(long l)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | l |
Finish()
Flush all buffered data to disk. This instance is not usable anymore after this method has been called until Reset(DataOutput) has been called.
Declaration
public virtual void Finish()
Flush()
Declaration
protected abstract void Flush()
Reset(DataOutput)
Reset this writer to wrap out
. The block size remains unchanged.
Declaration
public virtual void Reset(DataOutput out)
Parameters
Type | Name | Description |
---|---|---|
DataOutput | out |
WriteValues(Int32)
Declaration
protected void WriteValues(int bitsRequired)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bitsRequired |