public abstract static class PackedInts.Mutable extends PackedInts.Reader
EMPTY| Constructor and Description | 
|---|
| PackedInts.Mutable() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Sets all values to 0. | 
| void | fill(int fromIndex,
    int toIndex,
    long val)Fill the mutable from  fromIndex(inclusive) totoIndex(exclusive) withval. | 
| void | save(DataOutput out)Save this mutable into  out. | 
| abstract void | set(int index,
   long value)Set the value at the given index in the array. | 
| int | set(int index,
   long[] arr,
   int off,
   int len)Bulk set: set at least one and at most  lenlongs starting
 atoffinarrinto this mutable, starting atindex. | 
get, getArray, getBitsPerValue, hasArray, ramBytesUsed, sizegetpublic abstract void set(int index,
       long value)
index - where the value should be positioned.value - a value conforming to the constraints set by the array.public int set(int index,
      long[] arr,
      int off,
      int len)
len longs starting
 at off in arr into this mutable, starting at
 index. Returns the actual number of values that have been
 set.public void fill(int fromIndex,
        int toIndex,
        long val)
fromIndex (inclusive) to
 toIndex (exclusive) with val.public void clear()
public void save(DataOutput out) throws IOException
out. Instantiating a reader from
 the generated data will return a reader with the same number of bits
 per value.IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.