public class AppendableVec extends Vec
Vec.CollectDomain, Vec.VectorGroup, Vec.Writer
Modifier and Type | Field and Description |
---|---|
static byte |
ENUM |
static byte |
NA |
static byte |
NUMBER |
static byte |
TIME |
_domain, _key, _time, KEY_PREFIX_LEN, LOG_CHK, MAX_ENUM_SIZE
Constructor and Description |
---|
AppendableVec(Key key) |
AppendableVec(java.lang.String keyName) |
Modifier and Type | Method and Description |
---|---|
long |
byteSize()
Size of compressed vector data.
|
long |
chunk2StartElem(int cidx)
Convert a chunk-index into a starting row #.
|
Chunk |
chunkForChunkIdx(int cidx)
The Chunk for a chunk#.
|
Value |
chunkIdx(int cidx)
Get a Chunk's Value by index.
|
Vec |
close(Futures fs) |
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.
|
align, at, at8, cardinality, checkMissing, chunkForRow, chunkKey, chunkLen, domain, domain, equals, getVecKey, group, groupKey, hash, hashCode, isBad, isByteVec, isConst, isEnum, isFloat, isInt, isNA, isTime, make1Elem, make1Elem, makeCon, makeCon, makeCon, makeCons, makeConSeq, makeNewCons, makeSeq, makeTransf, makeZero, makeZero, makeZeros, makeZeros, masterVec, max, mean, min, naCnt, newKey, open, postWrite, remove, rollupStats, rollupStats, set, set, set, setNA, sigma, timeMode, timeParse, toEnum
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public static final byte NA
public static final byte ENUM
public static final byte NUMBER
public static final byte TIME
public AppendableVec(java.lang.String keyName)
public AppendableVec(Key key)
public void reduce(AppendableVec nv)
public boolean readable()
Vec
public boolean writable()
Vec
public Chunk chunkForChunkIdx(int cidx)
Vec
chunkForChunkIdx
in class Vec
public Value chunkIdx(int cidx)
Vec
DKV.get()
. Warning: this pulls the data locally;
using this call on every Chunk index on the same node will
probably trigger an OOM!public long length()
Vec
public int nChunks()
Vec
public long chunk2StartElem(int cidx)
Vec
chunk2StartElem
in class Vec
public long get(long i)
public double getd(long i)
public long byteSize()
Vec