public class UploadFileVec extends ByteVec
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadFileVec.ReadPutStats |
Vec.CollectDomain, Vec.VectorGroup, Vec.Writer| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SZ |
_espc, KEY_PREFIX_LEN, PERCENTILES, T_BAD, T_ENUM, T_NUM, T_STR, T_TIME, T_TIMELAST, T_UUID| Modifier | Constructor and Description |
|---|---|
protected |
UploadFileVec(Key key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAndCloseChunk(Chunk c,
Futures fs) |
long |
byteSize()
Size of vector data.
|
Value |
chunkIdx(int cidx)
Get a Chunk's Value by index.
|
static long |
chunkOffset(Key ckey)
Convert a chunk-key to a file offset.
|
void |
close(water.fvec.C1NChunk c,
int cidx,
Futures fs) |
long |
length()
Number of elements in the vector; returned as a
long instead of
an int because Vecs support more than 2^32 elements. |
int |
nChunks()
Number of chunks, returned as an
int - Chunk count is limited by
the max size of a Java long[]. |
static Key |
readPut(Key k,
java.io.InputStream is,
UploadFileVec.ReadPutStats stats) |
static Key |
readPut(java.lang.String keyname,
java.io.InputStream is,
UploadFileVec.ReadPutStats stats) |
boolean |
writable()
Default read/write behavior for Vecs.
|
chunkForChunkIdx, getFirstBytes, isInt, naCnt, openStreamadaptTo, 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, isNA, isNumeric, isString, isTime, isUUID, lazy_bins, makeCon, makeCon, makeCons, makeCopy, makeRepSeq, makeSeq, makeSeq, makeVec, makeZero, makeZero, makeZero, max, maxs, mean, min, mins, newKey, ninfs, nzCnt, open, pctiles, pinfs, postWrite, preWriting, remove_impl, set, set, set, set, setDomain, sigma, startRollupStats, startRollupStats, stride, toEnum, toString, toStringVecclone, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSONpublic static final int CHUNK_SZ
protected UploadFileVec(Key key)
public boolean writable()
Vecpublic void close(water.fvec.C1NChunk c,
int cidx,
Futures fs)
public Value chunkIdx(int cidx)
VecDKV.get(). Warning: this pulls the data locally; using this call
on every Chunk index on the same node will probably trigger an OOM!public static Key readPut(java.lang.String keyname, java.io.InputStream is, UploadFileVec.ReadPutStats stats) throws java.lang.Exception
java.lang.Exceptionpublic static Key readPut(Key k, java.io.InputStream is, UploadFileVec.ReadPutStats stats) throws java.lang.Exception
java.lang.Exceptionpublic long length()
Veclong 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()
Vecint - 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 long byteSize()
public static long chunkOffset(Key ckey)