Class GrowableWriter
  
  Implements PackedInt32s.Mutable, but grows the
bit count of the underlying packed ints on-demand.
Beware that this class will accept to set negative values but in order
to do this, it will grow the number of bits per value to 64.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
 
 
  
  
    Inheritance
    System.Object
    
    
    
    GrowableWriter
   
  
    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
  Syntax
  
    public class GrowableWriter : PackedInt32s.Mutable
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GrowableWriter(Int32, Int32, Single)
  
  
  Declaration
  
    public GrowableWriter(int startBitsPerValue, int valueCount, float acceptableOverheadRatio)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        startBitsPerValue | 
        the initial number of bits per value, may grow depending on the data  
 | 
      
      
        | System.Int32 | 
        valueCount | 
        the number of values  
 | 
      
      
        | System.Single | 
        acceptableOverheadRatio | 
        an acceptable overhead ratio  
 | 
      
    
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  BitsPerValue
  
  
  Declaration
  
    public override int BitsPerValue { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Count
  
  
  Declaration
  
    public override int Count { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  HasArray
  
  
  Declaration
  
    public override bool HasArray { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Mutable
  
  
  Declaration
  
    public virtual PackedInt32s.Mutable Mutable { get; }
   
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Clear()
  
  
  Declaration
  
    public override void Clear()
   
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Fill(Int32, Int32, Int64)
  
  
  Declaration
  
    public override void Fill(int fromIndex, int toIndex, long val)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        fromIndex | 
         | 
      
      
        | System.Int32 | 
        toIndex | 
         | 
      
      
        | System.Int64 | 
        val | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Get(Int32)
  
  
  Declaration
  
    public override long Get(int index)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        index | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Get(Int32, Int64[], Int32, Int32)
  
  
  Declaration
  
    public override int Get(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 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetArray()
  
  
  Declaration
  
    public override object GetArray()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  RamBytesUsed()
  
  
  Declaration
  
    public override long RamBytesUsed()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Resize(Int32)
  
  
  Declaration
  
    public virtual GrowableWriter Resize(int newSize)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        newSize | 
         | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Save(DataOutput)
  
  
  Declaration
  
    public override void Save(DataOutput out)
   
  Parameters
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Set(Int32, Int64)
  
  
  Declaration
  
    public override void Set(int index, long value)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        index | 
         | 
      
      
        | System.Int64 | 
        value | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Set(Int32, Int64[], Int32, Int32)
  
  
  Declaration
  
    public override 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 | 
         | 
      
    
  
  Overrides