public class Value extends Iced implements jsr166y.ForkJoinPool.ManagedBlocker
MemoryManager
.Modifier and Type | Field and Description |
---|---|
Key |
_key |
int |
_max |
byte |
_persist |
static byte |
BACKEND_MASK |
static byte |
HDFS |
static byte |
ICE |
static int |
MAX |
static byte |
NFS |
static byte |
NOTdsk |
static byte |
ON_dsk |
static byte |
S3 |
static byte |
TCP |
Constructor and Description |
---|
Value() |
Value(Key k,
byte[] mem) |
Value(Key k,
Freezable pojo) |
Value(Key k,
Iced pojo) |
Value(Key k,
Iced pojo,
byte be) |
Value(Key k,
int max) |
Value(Key k,
int max,
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 |
---|---|
byte |
backend() |
boolean |
block()
Possibly blocks the current thread.
|
java.lang.String |
className() |
void |
clrdsk() |
void |
freeMem() |
void |
freePOJO() |
<T extends Iced> |
get() |
<T extends Freezable> |
get(java.lang.Class<T> fc) |
byte[] |
getBytes() |
byte[] |
getFirstBytes() |
<T extends Freezable> |
getFreezable() |
java.lang.StringBuilder |
getString(int len,
java.lang.StringBuilder sb) |
boolean |
isArray() |
boolean |
isBitIdentical(Value v) |
boolean |
isByteVec() |
boolean |
isEmpty() |
boolean |
isFrame() |
boolean |
isHex() |
boolean |
isLockable() |
boolean |
isPersisted() |
boolean |
isRawData() |
boolean |
isReleasable()
Return true if blocking is unnecessary.
|
boolean |
isVec() |
static Value |
lazyArrayChunk(Key key)
Lazily manifest data chunks on demand.
|
long |
length() |
byte[] |
memOrLoad() |
java.lang.String |
nameOfPersist() |
static java.lang.String |
nameOfPersist(int x) |
int |
numReplicas() |
boolean |
onHDFS() |
boolean |
onICE() |
boolean |
onNFS() |
boolean |
onS3() |
java.io.InputStream |
openStream() |
java.io.InputStream |
openStream(Job.ProgressMonitor p)
Creates a Stream for reading bytes
|
byte[] |
rawMem() |
Freezable |
rawPOJO() |
Value |
read(AutoBuffer bb)
Deserialize from the AutoBuffer into a pre-existing 'this' object.
|
void |
setdsk() |
void |
setHdfs()
Set persistence to HDFS from ICE
|
void |
touch() |
int |
type() |
AutoBuffer |
write(AutoBuffer bb)
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
|
clone, frozenType, init, newInstance, toDocField, writeJSON, writeJSONFields
public static final int MAX
public int _max
public transient Key _key
public volatile byte _persist
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 static final byte BACKEND_MASK
public static final byte NOTdsk
public static final byte ON_dsk
public Value(Key k, int max, byte[] mem, short type, byte be)
public Value(Key k, byte[] mem)
public Value(Key k, int max)
public Value(Key k, int max, byte be)
public Value(Key k, java.lang.String s)
public Value()
public int type()
public java.lang.String className()
public final byte[] rawMem()
public Freezable rawPOJO()
public final void freeMem()
public final void freePOJO()
public final byte[] memOrLoad()
public final boolean isEmpty()
public final byte[] getBytes()
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 touch()
public final void clrdsk()
public final void setdsk()
public final boolean isPersisted()
public final byte backend()
public boolean onICE()
public boolean onHDFS()
public boolean onNFS()
public boolean onS3()
public java.lang.String nameOfPersist()
public static java.lang.String nameOfPersist(int x)
public void setHdfs()
public java.lang.StringBuilder getString(int len, java.lang.StringBuilder sb)
public boolean isLockable()
public boolean isArray()
public boolean isFrame()
public boolean isVec()
public boolean isByteVec()
public boolean isRawData()
public byte[] getFirstBytes()
public long length()
public java.io.InputStream openStream() throws java.io.IOException
java.io.IOException
public java.io.InputStream openStream(Job.ProgressMonitor p) throws java.io.IOException
java.io.IOException
public boolean isHex()
public boolean isBitIdentical(Value v)
public AutoBuffer write(AutoBuffer bb)
Freezable
public Value read(AutoBuffer bb)
Freezable
public static Value lazyArrayChunk(Key key)
public int numReplicas()
public boolean isReleasable()
isReleasable
in interface jsr166y.ForkJoinPool.ManagedBlocker
public boolean block()
block
in interface jsr166y.ForkJoinPool.ManagedBlocker
true
if no additional blocking is necessary
(i.e., if isReleasable would return true)