public final class Value extends Iced implements ForkJoinPool.ManagedBlocker
MemoryManager.| Modifier and Type | Field and Description |
|---|---|
Key |
_key |
int |
_max |
static byte |
HDFS |
static byte |
ICE |
static byte |
NFS |
static byte |
S3 |
static byte |
TCP |
| Constructor and Description |
|---|
Value(Key k,
byte[] mem) |
Value(Key k,
Freezable pojo) |
Value(Key k,
Freezable pojo,
byte be) |
Value(Key k,
int max,
byte[] mem,
short type,
byte be) |
Value(Key k,
java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
block()
Possibly blocks the current thread.
|
java.lang.String |
className() |
void |
freeMem() |
void |
freePOJO() |
<T extends Iced> |
get() |
<T extends Freezable> |
get(java.lang.Class<T> fc) |
<T extends Freezable> |
getFreezable() |
boolean |
isFrame() |
boolean |
isKey() |
boolean |
isLockable() |
boolean |
isModel() |
boolean |
isPersisted() |
boolean |
isReleasable()
Return true if blocking is unnecessary.
|
boolean |
isSubclassOf(java.lang.Class clz) |
static boolean |
isSubclassOf(int type,
java.lang.Class clz) |
boolean |
isVec() |
boolean |
isVecGroup() |
byte[] |
memOrLoad() |
static java.lang.String |
nameOfPersist(int x) |
Freezable |
rawPOJO() |
Value |
read_impl(AutoBuffer bb) |
void |
setdsk() |
AutoBuffer |
write_impl(AutoBuffer ab) |
clone, frozenType, read, readJSON_impl, readJSON, write, writeHTML_impl, writeHTML, writeJSON_impl, writeJSONpublic transient Key _key
public int _max
public static final byte ICE
public static final byte HDFS
public static final byte S3
public static final byte NFS
public static final byte TCP
public Value(Key k, int max, byte[] mem, short type, byte be)
public Value(Key k, byte[] mem)
public Value(Key k, java.lang.String s)
public java.lang.String className()
public Freezable rawPOJO()
public final void freeMem()
public final void freePOJO()
public final byte[] memOrLoad()
public <T extends Iced> T get()
public <T extends Freezable> T get(java.lang.Class<T> fc)
public <T extends Freezable> T getFreezable()
public final void setdsk()
public final boolean isPersisted()
public static java.lang.String nameOfPersist(int x)
public boolean isSubclassOf(java.lang.Class clz)
public static boolean isSubclassOf(int type,
java.lang.Class clz)
public boolean isKey()
public boolean isFrame()
public boolean isVecGroup()
public boolean isLockable()
public boolean isVec()
public boolean isModel()
public AutoBuffer write_impl(AutoBuffer ab)
write_impl in interface Freezablewrite_impl in class Icedpublic Value read_impl(AutoBuffer bb)
public boolean isReleasable()
isReleasable in interface ForkJoinPool.ManagedBlockerpublic boolean block()
block in interface ForkJoinPool.ManagedBlockertrue if no additional blocking is necessary
(i.e., if isReleasable would return true)