public class EntryBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
allocation |
protected static Hit[] |
EMPTY_HITS |
protected java.util.List<Hit> |
hits |
protected int |
index |
Constructor and Description |
---|
EntryBuilder(int size) |
Modifier and Type | Method and Description |
---|---|
void |
addHit(Hit hit) |
void |
allocate(int index,
int alloc) |
void |
commitAllocation() |
void |
deallocate(int index) |
int |
getIndex() |
void |
setIndex(int index) |
ResultEntry |
toEntry() |
protected java.util.List<Hit> hits
protected int index
protected static final Hit[] EMPTY_HITS
protected final int[] allocation
public void allocate(int index, int alloc)
public void deallocate(int index)
public void commitAllocation()
public void addHit(Hit hit)
public void setIndex(int index)
public int getIndex()
public ResultEntry toEntry()