public class TransfVec extends Vec
The mapping is defined by a simple hash map composed of two arrays.
The first array contains values. Index of values is index into the second array _indexes
which contains final value (i.e., index to domain array).
If _indexes array is null, then index of found value is used directly.
To avoid virtual calls or additional null check for _indexes the
vector returns two different implementations of the underlying chunk
depending if _indexes is null or not.
Vec.CollectDomain, Vec.VectorGroupCHUNK_SZ, KEY_PREFIX_LEN, PERCENTILES, T_BAD, T_ENUM, T_NUM, T_STR, T_TIME, T_TIMELAST, T_UUID| Constructor and Description |
|---|
TransfVec(int[][] mapping,
Key masterVecKey,
Key key,
long[] espc) |
TransfVec(int[][] mapping,
java.lang.String[] domain,
Key masterVecKey,
Key key,
long[] espc) |
TransfVec(int[] values,
int[] indexes,
java.lang.String[] domain,
Key masterVecKey,
Key key,
long[] espc) |
| Modifier and Type | Method and Description |
|---|---|
Chunk |
chunkForChunkIdx(int cidx)
The Chunk for a chunk#.
|
Vec |
compose(int[][] transfMap,
java.lang.String[] domain)
Compose this vector with given transformation.
|
static Vec |
compose(TransfVec origVec,
int[][] transfMap,
java.lang.String[] domain,
boolean keepOrig)
Compose given origVector with given transformation.
|
protected Vec |
masterVec()
This Vec does not have dependent hidden Vec it uses.
|
static int[][] |
pack(int[] values,
boolean[] usemap) |
static void |
sortAccording2(int[] ary,
java.lang.Integer[] sortOrder)
Sort given array according given sort order.
|
static void |
sortWith(int[] ary,
int[] ary2)
Sort two arrays - the second one is sorted according the first one.
|
align, at, at16h, at16l, at8, atStr, base, bins, cardinality, checksum, chunkForRow, chunkKey, chunkKey, domain, equals, factor, getVecKey, group, hashCode, isBad, isConst, isEnum, isInt, isNA, isNumeric, isString, isTime, isUUID, lazy_bins, length, makeCon, makeCon, makeCopy, makeRepSeq, makeSeq, makeSimpleTransf, makeTransf, makeTransf, makeVec, makeVec, makeVec, makeZero, makeZero, makeZero, 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, timeParse, toEnum, toStringclone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSONpublic TransfVec(int[][] mapping,
java.lang.String[] domain,
Key masterVecKey,
Key key,
long[] espc)
public Chunk chunkForChunkIdx(int cidx)
Vecpublic Vec compose(int[][] transfMap, java.lang.String[] domain)
public static Vec compose(TransfVec origVec, int[][] transfMap, java.lang.String[] domain, boolean keepOrig)
origVec - transfMap - keepOrig - TransfVec composing transformation of origVector and tranfsMappublic static int[][] pack(int[] values,
boolean[] usemap)
public static void sortWith(int[] ary,
int[] ary2)
public static void sortAccording2(int[] ary,
java.lang.Integer[] sortOrder)