public class OneChunkVec extends Vec
Vec.ESPC, Vec.Holder, Vec.Reader, Vec.VectorGroup, Vec.Writer
_cids, _rowLayout, DO_HISTOGRAMS, KEY_PREFIX_LEN, PERCENTILES, T_BAD, T_CAT, T_NUM, T_STR, T_TIME, T_UUID, TYPE_STR
Constructor and Description |
---|
OneChunkVec(Key<Vec> key,
int rowLayout,
Key<Vec> masterVecKey,
int chunkIdx) |
Modifier and Type | Method and Description |
---|---|
Chunk |
chunkForChunkIdx(int cidx)
Map from chunk-index to Chunk.
|
int |
chunkLen(int cidx)
Number of rows in chunk.
|
int |
elem2ChunkIdx(long i)
Convert a row# to a chunk#.
|
long |
length()
Number of elements in the vector; returned as a
long instead of
an int because Vecs support more than 2^32 elements. |
static OneChunkVec |
make(Vec v,
int cidx,
Futures fs) |
Vec |
masterVec() |
int |
nChunks()
Number of chunks, returned as an
int - Chunk count is limited by
the max size of a Java long[] . |
java.lang.String |
toString()
Pretty print the Vec:
[#elems, min/mean/max]{chunks,...} |
adaptTo, align, asDouble, at, at16h, at16l, at8, atStr, base, bins, bulk_remove, byteSize, cardinality, checksum_impl, chunkForRow, chunkKey, chunkKey, doCopy, domain, equals, espc, factor, get_type_str, get_type, getVecKey, group, hashCode, isBad, isBinary, isBinary, isBinaryOnes, isCategorical, isCompatibleWith, isConst, isConst, isDomainTruncated, isHomedLocally, isInt, isNA, isNumeric, isString, isTime, isUUID, isVolatile, lazy_bins, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeCon, makeConN, makeCons, makeCons, makeCopy, makeCopy, makeCopy, makeDoubles, makeOne, makeOne, makeOnes, makeOnes, makeRand, makeRepSeq, makeSeq, makeSeq, makeSeq, makeTimeVec, makeVec, makeVec, makeVec, makeVec, makeVec, makeVec, makeVolatileDoubles, makeVolatileInts, makeZero, makeZero, makeZero, makeZero, makeZero, makeZeros, makeZeros, max, maxs, mean, min, mins, mode, naCnt, nChunksFor, newKey, ninfs, nonEmptyChunks, nzCnt, open, pctiles, pinfs, postWrite, preWriting, readAll_impl, remove_impl, remove_self_key_impl, rollupStatsKey, set, set, set, set, set, setBad, setChunkIdx, setDomain, setNA, sigma, sparseRatio, startRollupStats, startRollupStats, stride, stringAt, toCategoricalVec, toIntegerVec, toNumericVec, toStringVec, toTwoDimTable, toTwoDimTable, writeAll_impl
checksum_impl, checksum, checksum, getKey, makeSchema, readAll, remove_impl, remove, remove, remove, remove, remove, remove, removeQuietly, writeAll
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public static OneChunkVec make(Vec v, int cidx, Futures fs)
public int elem2ChunkIdx(long i)
Vec
elem2ChunkIdx
in class Vec
public Vec masterVec()
public Chunk chunkForChunkIdx(int cidx)
public long length()
Vec
long
instead of
an int
because Vecs support more than 2^32 elements. Overridden
by subclasses that compute length in an alternative way, such as
file-backed Vecs.public int nChunks()
Vec
int
- Chunk count is limited by
the max size of a Java long[]
. Overridden by subclasses that
compute chunks in an alternative way, such as file-backed Vecs.public int chunkLen(int cidx)
Vec