public abstract class FileVec extends ByteVec
Vec.CollectDomain, Vec.VectorGroup, Vec.Writer
Modifier and Type | Field and Description |
---|---|
static int |
CHUNK_SZ |
_domain, _espc, _key, _time, KEY_PREFIX_LEN, LOG_CHK, MAX_ENUM_SIZE
Modifier | Constructor and Description |
---|---|
protected |
FileVec(Key key,
long len,
byte be) |
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 #.
|
Value |
chunkIdx(int cidx)
Get a Chunk's Value by index.
|
static int |
chunkIdx(Key ckey) |
static long |
chunkOffset(Key ckey) |
boolean |
isInt()
Is all integers?
|
long |
length()
Number of elements in the vector.
|
double |
max()
Return column max - lazily computed as needed.
|
double |
mean()
Return column mean - lazily computed as needed.
|
double |
min()
Return column min - lazily computed as needed.
|
long |
naCnt()
Return column missing-element-count - lazily computed as needed.
|
int |
nChunks()
Number of chunks.
|
double |
sigma()
Return column standard deviation - lazily computed as needed.
|
boolean |
writable()
Default read/write behavior for Vecs.
|
chunkForChunkIdx, openStream
align, at, at8, cardinality, checkMissing, chunkForRow, chunkKey, chunkLen, domain, domain, equals, getVecKey, group, groupKey, hash, hashCode, isBad, isByteVec, isConst, isEnum, isFloat, isNA, isTime, make1Elem, make1Elem, makeCon, makeCon, makeCon, makeCons, makeConSeq, makeNewCons, makeSeq, makeTransf, makeZero, makeZero, makeZeros, makeZeros, masterVec, newKey, open, postWrite, readable, remove, rollupStats, rollupStats, set, set, set, setNA, timeMode, timeParse, toEnum, toString
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
public static final int CHUNK_SZ
protected FileVec(Key key, long len, byte be)
public long length()
Vec
public int nChunks()
Vec
public boolean writable()
Vec
public double min()
Vec
public double mean()
public double sigma()
public long naCnt()
public long chunk2StartElem(int cidx)
Vec
chunk2StartElem
in class Vec
public static long chunkOffset(Key ckey)
public static int chunkIdx(Key ckey)