public class EnumWrappedVec extends Vec
The Vector's domain is the union of the Test and Train domains.
The mapping is defined by int[] array, size is input Test.domain.length. Contents refer to values in the Train.domain. Extra values in the Test domain are sorted after the Train.domain - so mapped values have to be range-checked (note that returning some flag for NA, say -1, would also need to be checked for).
Vec.CollectDomain, Vec.VectorGroup, Vec.Writer
_espc, KEY_PREFIX_LEN, PERCENTILES, T_BAD, T_ENUM, T_NUM, T_STR, T_TIME, T_TIMELAST, T_UUID
Constructor and Description |
---|
EnumWrappedVec(Key key,
long[] espc,
java.lang.String[] toDomain,
Key masterVecKey)
Main constructor: convert from one enum to another
|
Modifier and Type | Method and Description |
---|---|
Chunk |
chunkForChunkIdx(int cidx)
The Chunk for a chunk#.
|
Vec |
masterVec() |
adaptTo, align, at, at16h, at16l, at8, atStr, base, bins, cardinality, checksum_impl, chunkForRow, chunkKey, chunkKey, domain, equals, factor, get_espc, get_type, getVecKey, group, hashCode, isBad, isConst, isEnum, isInt, isNA, isNumeric, isString, isTime, isUUID, lazy_bins, length, makeCon, makeCon, makeCon, makeCons, makeCopy, makeRepSeq, makeSeq, makeSeq, makeVec, makeZero, makeZero, makeZero, makeZeros, makeZeros, max, maxs, mean, min, mins, naCnt, nChunks, newKey, ninfs, nzCnt, open, pctiles, pinfs, postWrite, preWriting, remove_impl, set, set, set, set, setDomain, sigma, startRollupStats, startRollupStats, stride, toEnum, toString, toStringVec
clone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON
public Chunk chunkForChunkIdx(int cidx)
Vec
public Vec masterVec()