public class FieldSearchIndex<T extends NdNode> extends java.lang.Object implements IDestructableField
| Modifier and Type | Class and Description |
|---|---|
static interface |
FieldSearchIndex.IResultRank |
static class |
FieldSearchIndex.SearchCriteria |
static interface |
FieldSearchIndex.Visitor<T> |
| Modifier and Type | Field and Description |
|---|---|
protected int |
offset |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
asList(Nd nd,
long address)
Returns the entire contents of the index as a single list.
|
static <T extends NdNode,B> |
create(StructDef<B> builder,
FieldSearchKey<B> searchKey) |
void |
destruct(Nd nd,
long address) |
java.util.List<T> |
findAll(Nd nd,
long address,
FieldSearchIndex.SearchCriteria searchCriteria) |
java.util.List<T> |
findAll(Nd nd,
long address,
FieldSearchIndex.SearchCriteria searchCriteria,
int count) |
T |
findBest(Nd nd,
long address,
FieldSearchIndex.SearchCriteria searchCriteria,
FieldSearchIndex.IResultRank rankFunction) |
T |
findFirst(Nd nd,
long address,
FieldSearchIndex.SearchCriteria searchCriteria) |
BTree |
get(Nd nd,
long address) |
java.lang.String |
getFieldName()
Returns the name of the field.
|
int |
getOffset()
Returns the field offset, in bytes from the start of the struct.
|
int |
getRecordSize()
Returns the size of the field, in bytes.
|
protected void |
setFieldName(java.lang.String fieldName) |
void |
setOffset(int offset)
Sets the field offset (bytes from the start of the struct).
|
boolean |
visitAll(Nd nd,
long address,
FieldSearchIndex.SearchCriteria searchCriteria,
FieldSearchIndex.Visitor<T> visitor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlignmentpublic static <T extends NdNode,B> FieldSearchIndex<T> create(StructDef<B> builder, FieldSearchKey<B> searchKey)
public void destruct(Nd nd, long address)
destruct in interface IDestructableFieldpublic int getRecordSize()
IFieldgetRecordSize in interface IFieldpublic T findFirst(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria)
public T findBest(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, FieldSearchIndex.IResultRank rankFunction)
public boolean visitAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, FieldSearchIndex.Visitor<T> visitor)
public java.util.List<T> findAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria)
public java.util.List<T> findAll(Nd nd, long address, FieldSearchIndex.SearchCriteria searchCriteria, int count)
public java.util.List<T> asList(Nd nd, long address)
protected final void setFieldName(java.lang.String fieldName)
public final void setOffset(int offset)
IFieldpublic final int getOffset()
IFieldpublic final java.lang.String getFieldName()
IFieldgetFieldName in interface IField