public class FSTStruct extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Bytez |
___bytes |
int |
___elementSize |
FSTStructFactory |
___fac |
long |
___offset |
FSTStructChange |
tracker |
| Constructor and Description |
|---|
FSTStruct() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOffset(long off) |
void |
baseOn(byte[] base,
int index)
set this struct pointer to base array at given index
|
void |
baseOn(byte[] base,
long offset,
FSTStructFactory fac)
set this struct pointer to base array at given offset (=bufoff+index)
|
void |
baseOn(Bytez base,
int index) |
void |
baseOn(Bytez base,
long offset,
FSTStructFactory fac) |
FSTStruct |
cast() |
<T extends FSTStruct> |
cast(Class<T> to) |
FSTStruct |
createCopy()
returns a complete copy of this object allocating a new Bytez capable of holding the data.
|
FSTStruct |
detach()
important: iterators, array access and access to substructures of a struct always return
pointers, which are cached per thread.
|
boolean |
equals(Object obj) |
FSTStructChange |
finishChangeTracking()
works only if change tracking is enabled
|
protected long |
getAbsoluteOffset() |
Bytez |
getBase() |
byte |
getByte() |
void |
getBytes(byte[] target,
int startIndexInTarget,
int len) |
void |
getBytes(Bytez target,
int startIndexInTarget) |
int |
getByteSize() |
char |
getChar() |
int |
getClzId() |
double |
getDouble() |
int |
getElementInArraySize() |
FSTStructFactory |
getFac() |
Object |
getFieldValues() |
float |
getFloat() |
long |
getIndexInBase()
Deprecated.
use getOffset
see getOffset
|
int |
getInt() |
long |
getLong() |
long |
getOffset() |
Class |
getPointedClass() |
short |
getShort() |
int |
hashCode() |
boolean |
isChangeTracking() |
boolean |
isIdenticTo(FSTStruct other) |
boolean |
isNull() |
boolean |
isOffHeap() |
boolean |
isStructArrayPointer() |
void |
next()
Warning: no bounds checking.
|
void |
next(int offset)
Warning: no bounds checking.
|
int |
onHeapHashcode() |
boolean |
pointsToNull() |
void |
previous()
Warning: no bounds checking.
|
protected void |
setAbsoluteOffset(long off)
must include bytearray offset in case of unsafe use
|
protected void |
setBase(Bytez base) |
void |
setByte(byte i) |
void |
setBytes(byte[] source,
int sourceIndex,
int len) |
void |
setBytes(Bytez source,
int sourceIndex,
int len) |
void |
setInt(int i) |
void |
setLong(long i) |
void |
setShort(short i) |
FSTStruct |
startChangeTracking()
works only if change tracking is enabled
|
FSTStruct |
toOffHeap() |
public transient long ___offset
public transient Bytez ___bytes
public transient FSTStructFactory ___fac
public transient int ___elementSize
public transient FSTStructChange tracker
protected void setAbsoluteOffset(long off)
off - protected long getAbsoluteOffset()
public long getOffset()
public long getIndexInBase()
public int getByteSize()
public Class getPointedClass()
public int getClzId()
public boolean pointsToNull()
protected void addOffset(long off)
protected void setBase(Bytez base)
public Bytez getBase()
public FSTStructFactory getFac()
public void baseOn(byte[] base,
long offset,
FSTStructFactory fac)
base - offset - direct offset to byte array element (=FSTStruct.bufoff+array index)public void baseOn(Bytez base, long offset, FSTStructFactory fac)
public void baseOn(byte[] base,
int index)
base - index - public void baseOn(Bytez base, int index)
public boolean isIdenticTo(FSTStruct other)
public int onHeapHashcode()
public boolean isOffHeap()
public int getElementInArraySize()
public boolean isStructArrayPointer()
public boolean isNull()
public FSTStruct detach()
public final void next()
public final void next(int offset)
public final void previous()
public FSTStruct cast()
public byte getByte()
public void setByte(byte i)
public char getChar()
public short getShort()
public void setShort(short i)
public int getInt()
public void setInt(int i)
public long getLong()
public void setLong(long i)
public float getFloat()
public double getDouble()
public void getBytes(byte[] target,
int startIndexInTarget,
int len)
public void getBytes(Bytez target, int startIndexInTarget)
public void setBytes(byte[] source,
int sourceIndex,
int len)
public void setBytes(Bytez source, int sourceIndex, int len)
public FSTStruct createCopy()
public FSTStruct startChangeTracking()
public FSTStructChange finishChangeTracking()
public boolean isChangeTracking()
public FSTStruct toOffHeap()
public Object getFieldValues()
Copyright © 2014. All rights reserved.