Class PackedInt32s.Mutable
A packed integer array that can be modified.
This is a Lucene.NET INTERNAL API, use at your own risk
Inheritance
System.Object
    
    
    PackedInt32s.Mutable
      
      
  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 Mutable : PackedInt32s.ReaderMethods
| Improve this Doc View SourceClear()
Sets all values to 0.
Declaration
public virtual void Clear()Fill(Int32, Int32, Int64)
Fill the mutable from fromIndex (inclusive) to
toIndex (exclusive) with val.
Declaration
public virtual void Fill(int fromIndex, int toIndex, long val)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | fromIndex | |
| System.Int32 | toIndex | |
| System.Int64 | val | 
Save(DataOutput)
Save this mutable into out. Instantiating a reader from
the generated data will return a reader with the same number of bits
per value.
Declaration
public virtual void Save(DataOutput out)Parameters
| Type | Name | Description | 
|---|---|---|
| DataOutput | out | 
Set(Int32, Int64)
Set the value at the given index in the array.
Declaration
public abstract void Set(int index, long value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Where the value should be positioned. | 
| System.Int64 | value | A value conforming to the constraints set by the array. | 
Set(Int32, Int64[], Int32, Int32)
Bulk set: set at least one and at most len longs starting
at off in arr into this mutable, starting at
index. Returns the actual number of values that have been
set.
Declaration
public virtual int Set(int index, long[] arr, int off, int len)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | |
| System.Int64[] | arr | |
| System.Int32 | off | |
| System.Int32 | len | 
Returns
| Type | Description | 
|---|---|
| System.Int32 |