K - V - public class StructMap<K extends FSTStruct,V extends FSTStruct> extends FSTStruct implements FSTArrayElementSizeCalculator
| Modifier and Type | Field and Description |
|---|---|
protected FSTStruct[] |
keys |
protected FSTStruct |
pointer |
protected int |
size |
protected FSTStruct[] |
vals |
| Constructor and Description |
|---|
StructMap(FSTStruct keyTemplate,
FSTStruct valueTemplate,
int numElems) |
StructMap(FSTStruct keyTemplate,
FSTStruct valueTemplate,
Map<K,V> elems) |
| Modifier and Type | Method and Description |
|---|---|
V |
get(Object key) |
int |
getCapacity() |
int |
getElementSize(Field arrayRef,
FSTStructFactory fac) |
Class<? extends FSTStruct> |
getElementType(Field arrayRef,
FSTStructFactory fac) |
protected void |
init(FSTStruct keyTemplate,
FSTStruct valueTemplate,
int numElems) |
Object |
keys(int i) |
void |
keys(int i,
FSTStruct v) |
int |
keysLen() |
protected int |
keysStructIndex() |
protected int |
locateIndex(Object key) |
V |
put(K key,
V value) |
protected void |
setKeyValue(int i,
K key,
V value) |
int |
size() |
Object |
vals(int i) |
void |
vals(int i,
FSTStruct v) |
int |
valsLen() |
protected int |
valsStructIndex() |
addOffset, baseOn, baseOn, baseOn, baseOn, cast, cast, createCopy, detach, equals, finishChangeTracking, getAbsoluteOffset, getBase, getByte, getBytes, getBytes, getByteSize, getChar, getClzId, getDouble, getElementInArraySize, getFac, getFieldValues, getFloat, getIndexInBase, getInt, getLong, getOffset, getPointedClass, getShort, hashCode, isChangeTracking, isIdenticTo, isNull, isOffHeap, isStructArrayPointer, next, next, onHeapHashcode, pointsToNull, previous, setAbsoluteOffset, setBase, setByte, setBytes, setBytes, setInt, setLong, setShort, startChangeTracking, toOffHeapprotected transient FSTStruct pointer
protected FSTStruct[] keys
protected FSTStruct[] vals
protected int size
protected int keysStructIndex()
protected int valsStructIndex()
protected int locateIndex(Object key)
public int size()
public int getCapacity()
public Object keys(int i)
public Object vals(int i)
public void keys(int i,
FSTStruct v)
public void vals(int i,
FSTStruct v)
public int keysLen()
public int valsLen()
public int getElementSize(Field arrayRef, FSTStructFactory fac)
getElementSize in interface FSTArrayElementSizeCalculatorpublic Class<? extends FSTStruct> getElementType(Field arrayRef, FSTStructFactory fac)
getElementType in interface FSTArrayElementSizeCalculatorCopyright © 2014. All rights reserved.