Class PackedInt32s.Format
A format to write packed System.Int32s.
This is a Lucene.NET INTERNAL API, use at your own risk
Inheritance
System.Object
PackedInt32s.Format
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()
Assembly: Lucene.Net.dll
Fields
|
Improve this Doc
View Source
Compact format, all bits are written contiguously.
Declaration
public static readonly PackedInt32s.Format PACKED
Field Value
|
Improve this Doc
View Source
A format that may insert padding bits to improve encoding and decoding
speed. Since this format doesn't support all possible bits per value, you
should never use it directly, but rather use
FastestFormatAndBits(Int32, Int32, Single) to find the
format that best suits your needs.
Declaration
public static readonly PackedInt32s.Format PACKED_SINGLE_BLOCK
Field Value
Properties
|
Improve this Doc
View Source
Returns the ID of the format.
Declaration
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public static IEnumerable<PackedInt32s.Format> Values { get; }
Property Value
Methods
|
Improve this Doc
View Source
Get a format according to its ID.
Declaration
public static PackedInt32s.Format ById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
|
Improve this Doc
View Source
Computes how many System.Byte blocks are needed to store valueCount
values of size bitsPerValue
.
Declaration
public virtual long ByteCount(int packedIntsVersion, int valueCount, int bitsPerValue)
Parameters
Type |
Name |
Description |
System.Int32 |
packedIntsVersion |
|
System.Int32 |
valueCount |
|
System.Int32 |
bitsPerValue |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Computes how many System.Int64 blocks are needed to store valueCount
values of size bitsPerValue
.
NOTE: This was longCount() in Lucene.
Declaration
public virtual int Int64Count(int packedIntsVersion, int valueCount, int bitsPerValue)
Parameters
Type |
Name |
Description |
System.Int32 |
packedIntsVersion |
|
System.Int32 |
valueCount |
|
System.Int32 |
bitsPerValue |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Tests whether the provided number of bits per value is supported by the
format.
Declaration
public virtual bool IsSupported(int bitsPerValue)
Parameters
Type |
Name |
Description |
System.Int32 |
bitsPerValue |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Returns the overhead per value, in bits.
Declaration
public virtual float OverheadPerValue(int bitsPerValue)
Parameters
Type |
Name |
Description |
System.Int32 |
bitsPerValue |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Returns the overhead ratio (overhead per value / bits per value
).
Declaration
public virtual float OverheadRatio(int bitsPerValue)
Parameters
Type |
Name |
Description |
System.Int32 |
bitsPerValue |
|
Returns
Type |
Description |
System.Single |
|
Extension Methods