|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwater.Iced
water.Value
public class Value
The core Value stored in the distributed K/V store. It contains an
underlying byte[] which may be spilled to disk and freed by the
MemoryManager
.
Field Summary | |
---|---|
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 Summary | |
---|---|
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)
|
Method Summary | ||
---|---|---|
boolean |
block()
Possibly blocks the current thread. |
|
java.lang.String |
className()
|
|
void |
clrdsk()
|
|
void |
freeMem()
|
|
void |
freePOJO()
|
|
|
get()
|
|
|
get(java.lang.Class<T> fc)
|
|
byte[] |
getBytes()
|
|
byte[] |
getFirstBytes()
|
|
Freezable |
getFreezable()
|
|
java.lang.StringBuilder |
getString(int len,
java.lang.StringBuilder sb)
|
|
boolean |
isArray()
|
|
boolean |
isBitIdentical(Value v)
|
|
boolean |
isByteVec()
|
|
boolean |
isFrame()
|
|
boolean |
isHex()
|
|
boolean |
isPersisted()
|
|
boolean |
isRawData()
|
|
boolean |
isReleasable()
Return true if blocking is unnecessary. |
|
boolean |
isRemotePutInFlight()
|
|
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. |
Methods inherited from class water.Iced |
---|
clone, frozenType, init, newInstance, toDocField, writeJSON, writeJSONFields |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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(Key k, Iced pojo)
public Value(Key k, Iced pojo, byte be)
public Value(Key k, Freezable pojo)
public Value()
Method Detail |
---|
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 byte[] getBytes()
public <T extends Iced> T get()
public <T> T get(java.lang.Class<T> fc)
public Freezable getFreezable()
public final void touch()
public final void clrdsk()
public final void setdsk()
public final boolean isPersisted()
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 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
write
in interface Freezable
write
in class Iced
public Value read(AutoBuffer bb)
Freezable
read
in interface Freezable
read
in class Iced
public static Value lazyArrayChunk(Key key)
public int numReplicas()
public boolean isRemotePutInFlight()
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |