|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwater.Iced
water.fvec.Vec
water.fvec.AppendableVec
public class AppendableVec
A NEW single distributed vector column. The NEW vector has no data, and takes no space. It supports distributed parallel writes to it, via calls to append2. Such writes happen in parallel and all writes are ordered. Writes *will* be local to the node doing them, specifically to allow control over locality. By default, writes will go local-homed chunks with no compression; there is a final 'close' to the NEW vector which may do compression; the final 'close' will return some other Vec type. NEW Vectors do NOT support reads!
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class water.fvec.Vec |
|---|
Vec.CollectDomain, Vec.VectorGroup |
| Field Summary | |
|---|---|
static byte |
ENUM
|
static byte |
NA
|
static byte |
NUMBER
|
| Fields inherited from class water.fvec.Vec |
|---|
_domain, _key, KEY_PREFIX_LEN, LOG_CHK, MAX_ENUM_SIZE |
| Constructor Summary | |
|---|---|
AppendableVec(Key key)
|
|
AppendableVec(java.lang.String keyName)
|
|
| Method Summary | |
|---|---|
long |
byteSize()
Size of compressed vector data. |
long |
chunk2StartElem(int cidx)
Convert a chunk-index into a starting row #. |
Value |
chunkIdx(int cidx)
Get a Chunk's Value by index. |
Vec |
close(Futures fs)
|
Chunk |
elem2BV(int cidx)
The Chunk for a chunk#. |
long |
get(long i)
|
double |
getd(long i)
|
long |
length()
Number of elements in the vector. |
int |
nChunks()
Number of chunks. |
boolean |
readable()
Default read/write behavior for Vecs. |
void |
reduce(AppendableVec nv)
|
java.lang.String |
toString()
Pretty print the Vec: [#elems, min/mean/max]{chunks,...} |
boolean |
writable()
Default read/write behavior for Vecs. |
| Methods inherited from class water.fvec.Vec |
|---|
adaptTo, asEnum, at, at8, chunk, chunkKey, chunkLen, defaultLevels, domain, domain, equals, espc, group, hashCode, isEnum, isInt, isNA, makeCon, makeCon, makeTransf, makeTransf, makeZero, max, mean, min, naCnt, newKey, postWrite, remove, rollupStats, rollupStats, rollupStats, set, set, set, setNA, sigma, toEnum |
| Methods inherited from class water.Iced |
|---|
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte NUMBER
public static final byte ENUM
public static final byte NA
| Constructor Detail |
|---|
public AppendableVec(java.lang.String keyName)
public AppendableVec(Key key)
| Method Detail |
|---|
public void reduce(AppendableVec nv)
public Vec close(Futures fs)
public boolean readable()
Vec
readable in class Vecpublic boolean writable()
Vec
writable in class Vecpublic Chunk elem2BV(int cidx)
Vec
elem2BV in class Vecpublic Value chunkIdx(int cidx)
VecDKV.get. Warning: this pulls the data locally;
using this call on every Chunk index on the same node will
probably trigger an OOM!
chunkIdx in class Vecpublic long length()
Vec
length in class Vecpublic int nChunks()
Vec
nChunks in class Vecpublic long chunk2StartElem(int cidx)
Vec
chunk2StartElem in class Vecpublic long get(long i)
public double getd(long i)
public long byteSize()
Vec
byteSize in class Vecpublic java.lang.String toString()
Vec
toString in class Vec
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||