public class NewChunk extends Chunk
Modifier and Type | Class and Description |
---|---|
class |
NewChunk.Value |
Modifier and Type | Field and Description |
---|---|
int |
_cidx |
double[] |
_ds |
int[] |
_id |
int[] |
_is |
long[] |
_ls |
int |
_sparseLen |
byte[] |
_ss |
int |
_sslen |
int[] |
_timCnt |
int[] |
_xs |
protected static int |
MIN_SPARSE_RATIO |
Constructor and Description |
---|
NewChunk(Chunk c) |
NewChunk(double[] ds) |
NewChunk(Vec vec,
int cidx) |
NewChunk(Vec vec,
int cidx,
boolean sparse) |
NewChunk(Vec vec,
int cidx,
int len) |
NewChunk(Vec vec,
int cidx,
long[] mantissa,
int[] exponent,
int[] indices,
double[] doubles) |
Modifier and Type | Method and Description |
---|---|
void |
add(NewChunk nc) |
void |
addEnum(int e) |
void |
addNA() |
void |
addNum(double d) |
void |
addNum(long val,
int exp) |
void |
addr(NewChunk nc) |
void |
addStr(Chunk c,
int row) |
void |
addStr(Chunk c,
long row) |
void |
addStr(ValueString str) |
void |
addUUID(Chunk c,
int row) |
void |
addUUID(Chunk c,
long row) |
void |
addUUID(long lo,
long hi) |
void |
addZeros(int n) |
protected long |
at16h_impl(int idx) |
protected long |
at16l_impl(int idx) |
long |
at8_impl(int i) |
double |
atd_impl(int i)
Chunk-specific readers.
|
ValueString |
atStr_impl(ValueString vstr,
int i) |
protected void |
cancel_sparse() |
int |
cidx() |
void |
close(Futures fs) |
Chunk |
compress() |
NewChunk |
convertEnum2Str(ValueString[] emap) |
protected double[] |
doubles() |
protected int |
enumCnt() |
protected int[] |
exponent() |
protected int[] |
indices() |
NewChunk |
inflate_impl(NewChunk nc)
Chunk-specific bulk inflater back to NewChunk.
|
protected boolean |
isEnum(int idx) |
protected boolean |
isEnum2(int idx) |
boolean |
isNA_impl(int i) |
protected boolean |
isNA2(int idx) |
boolean |
isSparse()
Sparse Chunks have a significant number of zeros, and support for
skipping over large runs of zeros in a row.
|
boolean |
isString() |
boolean |
isUUID() |
protected long[] |
mantissa() |
protected int |
naCnt() |
Chunk |
new_close() |
NewChunk |
read_impl(AutoBuffer bb)
Custom deserializers, implemented by Chunk subclasses: the _mem field
contains ALL the fields already.
|
boolean |
set_impl(int i,
double d) |
protected void |
set_sparse(int nzeros) |
void |
set_vec(Vec vec) |
protected boolean |
setNA_impl2(int i) |
NewChunk |
setSparseRatio(int s) |
boolean |
sparse() |
int |
sparseLen()
Sparse Chunks have a significant number of zeros, and support for
skipping over large runs of zeros in a row.
|
protected int |
strCnt() |
protected void |
switch_to_doubles() |
java.lang.String |
toString() |
byte |
type() |
java.util.Iterator<NewChunk.Value> |
values() |
java.util.Iterator<NewChunk.Value> |
values(int fromIdx,
int toIdx) |
AutoBuffer |
write_impl(AutoBuffer bb)
Custom serializers implemented by Chunk subclasses: the _mem field
contains ALL the fields already.
|
at16h, at16l, at8, atd, atStr, byteSize, chk2, close, crushBytes, getBytes, hasFloat, inflate, isNA, len, nextChunk, nextNZ, nonzeros, precision, reportBrokenEnum, set_abs, set, set, set, set, setBytes, setNA, setStart, setVec, start, vec
clone, frozenType, read, readExternal, readJSON_impl, readJSON, toJsonString, write, writeExternal, writeHTML_impl, writeHTML, writeJSON_impl, writeJSON
public final int _cidx
public transient long[] _ls
public transient int[] _xs
public transient int[] _id
public transient double[] _ds
public transient byte[] _ss
public transient int[] _is
public int _sslen
public int _sparseLen
public final int[] _timCnt
protected static final int MIN_SPARSE_RATIO
public NewChunk(Vec vec, int cidx)
public NewChunk(Vec vec, int cidx, boolean sparse)
public NewChunk(double[] ds)
public NewChunk(Vec vec, int cidx, long[] mantissa, int[] exponent, int[] indices, double[] doubles)
public NewChunk(Chunk c)
public NewChunk(Vec vec, int cidx, int len)
protected final long[] mantissa()
protected final int[] exponent()
protected final int[] indices()
protected final double[] doubles()
public boolean isSparse()
Chunk
public int sparseLen()
Chunk
sparseLen
in class Chunk
Chunk._len
protected int naCnt()
protected int enumCnt()
protected int strCnt()
public NewChunk setSparseRatio(int s)
public void set_vec(Vec vec)
public NewChunk convertEnum2Str(ValueString[] emap)
public java.util.Iterator<NewChunk.Value> values()
public java.util.Iterator<NewChunk.Value> values(int fromIdx, int toIdx)
public byte type()
protected final boolean isNA2(int idx)
protected final boolean isEnum2(int idx)
protected final boolean isEnum(int idx)
public void addEnum(int e)
public void addNA()
public void addNum(long val, int exp)
public void addNum(double d)
public void addStr(ValueString str)
public void addStr(Chunk c, long row)
public void addStr(Chunk c, int row)
public void addUUID(long lo, long hi)
public void addUUID(Chunk c, long row)
public void addUUID(Chunk c, int row)
public final boolean isUUID()
public final boolean isString()
public final boolean sparse()
public void addZeros(int n)
public void add(NewChunk nc)
public void addr(NewChunk nc)
public Chunk new_close()
public void close(Futures fs)
protected void switch_to_doubles()
protected void set_sparse(int nzeros)
protected void cancel_sparse()
public Chunk compress()
public boolean set_impl(int i, double d)
protected final boolean setNA_impl2(int i)
public long at8_impl(int i)
public double atd_impl(int i)
Chunk
protected long at16l_impl(int idx)
protected long at16h_impl(int idx)
public boolean isNA_impl(int i)
public ValueString atStr_impl(ValueString vstr, int i)
public NewChunk read_impl(AutoBuffer bb)
Chunk
public AutoBuffer write_impl(AutoBuffer bb)
Chunk
write_impl
in interface Freezable
write_impl
in class Chunk
bb
- AutoBuffer
to write this object to.AutoBuffer
for flow-coding.public NewChunk inflate_impl(NewChunk nc)
Chunk
inflate_impl
in class Chunk
public java.lang.String toString()