org.apache.lucene.util.packed
Class PackedInts.MutableImpl
java.lang.Object
org.apache.lucene.util.packed.PackedInts.ReaderImpl
org.apache.lucene.util.packed.PackedInts.MutableImpl
- All Implemented Interfaces:
- PackedInts.Mutable, PackedInts.Reader
- Enclosing class:
- PackedInts
public abstract static class PackedInts.MutableImpl
- extends PackedInts.ReaderImpl
- implements PackedInts.Mutable
Method Summary |
void |
fill(int fromIndex,
int toIndex,
long val)
Fill the mutable from fromIndex (inclusive) to
toIndex (exclusive) with val . |
protected int |
getFormat()
|
void |
save(DataOutput out)
Save this mutable into out . |
int |
set(int index,
long[] arr,
int off,
int len)
Bulk set: set at least one and at most len longs starting
at off in arr into this mutable, starting at
index . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackedInts.MutableImpl
protected PackedInts.MutableImpl(int valueCount,
int bitsPerValue)
set
public int set(int index,
long[] arr,
int off,
int len)
- Description copied from interface:
PackedInts.Mutable
- 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.
- Specified by:
set
in interface PackedInts.Mutable
fill
public void fill(int fromIndex,
int toIndex,
long val)
- Description copied from interface:
PackedInts.Mutable
- Fill the mutable from
fromIndex
(inclusive) to
toIndex
(exclusive) with val
.
- Specified by:
fill
in interface PackedInts.Mutable
getFormat
protected int getFormat()
save
public void save(DataOutput out)
throws IOException
- Description copied from interface:
PackedInts.Mutable
- Save this mutable into
out
. Instantiating a reader from
the generated data will return a reader with the same number of bits
per value.
- Specified by:
save
in interface PackedInts.Mutable
- Throws:
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.