public class FieldSearchKey<T> extends java.lang.Object implements IField, IDestructableField
| Modifier and Type | Method and Description |
|---|---|
static <T,B extends NdNode> |
create(StructDef<B> builder,
FieldSearchIndex<B> searchIndex)
Creates a search key attribute in the given struct which stores an entry in the given global search index
|
void |
destruct(Nd nd,
long address) |
IString |
get(Nd nd,
long address) |
int |
getRecordSize() |
boolean |
isInIndex(Nd nd,
long address)
Returns true iff this key is currently in the index
|
void |
put(Nd nd,
long address,
char[] newString)
Sets the value of the key and inserts it into the index if it is not already present
|
void |
put(Nd nd,
long address,
java.lang.String newString) |
void |
removeFromIndex(Nd nd,
long address)
Clears this key and removes it from the search index
|
void |
setOffset(int offset) |
public static <T,B extends NdNode> FieldSearchKey<T> create(StructDef<B> builder, FieldSearchIndex<B> searchIndex)
public void put(Nd nd, long address, java.lang.String newString)
public void put(Nd nd, long address, char[] newString)
public void destruct(Nd nd, long address)
destruct in interface IDestructableFieldpublic void removeFromIndex(Nd nd, long address)
public boolean isInIndex(Nd nd, long address)
public int getRecordSize()
getRecordSize in interface IField