|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwater.Iced
water.fvec.Chunk
water.fvec.CBSChunk
public class CBSChunk
A simple chunk for boolean values. In fact simple bit vector. Each boolean is represented by 2bits since we need to represent NA.
| Field Summary | |
|---|---|
protected byte |
_bpv
|
protected byte |
_gap
|
protected static byte |
_NA
|
| Fields inherited from class water.fvec.Chunk |
|---|
_chk, _len, _start, _vec |
| Constructor Summary | |
|---|---|
CBSChunk(byte[] bs,
byte gap,
byte bpv)
|
|
| Method Summary | |
|---|---|
protected long |
at8_impl(int idx)
|
protected byte |
atb(int idx)
|
protected double |
atd_impl(int idx)
Chunk-specific readers. |
static int |
clen(int values,
int bpv)
Returns compressed len of the given array length if the value if represented by bpv-bits. |
protected boolean |
isNA_impl(int i)
|
Chunk |
read(AutoBuffer bb)
Deserialize from the AutoBuffer into a pre-existing 'this' object. |
static byte |
read1b(byte b,
int off)
Reads 1bit from given b in given offset. |
static byte |
read2b(byte b,
int off)
Reads 1bit from given b in given offset. |
AutoBuffer |
write(AutoBuffer bb)
Chunk-specific implementations of read & write |
static byte |
write1b(byte b,
byte val,
int off)
Writes 1bit from value into b at given offset and return b |
static byte |
write2b(byte b,
byte val,
int off)
Writes 2bits from value into b at given offset and return b |
| Methods inherited from class water.fvec.Chunk |
|---|
at_slow, at, at0, at8_slow, at8, at80, byteSize, cidx, clone, close, getBytes, isNA_slow, isNA, isNA0, pformat_len, pformat_len0, pformat_len0, pformat, pformat0, readable, set, set, set, set0, set0, set0, setNA, setNA0, toString, writable |
| Methods inherited from class water.Iced |
|---|
frozenType, init, newInstance, toDocField, writeJSON, writeJSONFields |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final byte _NA
protected byte _bpv
protected byte _gap
| Constructor Detail |
|---|
public CBSChunk(byte[] bs,
byte gap,
byte bpv)
| Method Detail |
|---|
protected long at8_impl(int idx)
at8_impl in class Chunkprotected double atd_impl(int idx)
Chunk
atd_impl in class Chunkprotected final boolean isNA_impl(int i)
isNA_impl in class Chunkprotected byte atb(int idx)
public AutoBuffer write(AutoBuffer bb)
Chunk
write in interface Freezablewrite in class Chunkpublic Chunk read(AutoBuffer bb)
Freezable
read in interface Freezableread in class Chunk
public static byte write1b(byte b,
byte val,
int off)
public static byte write2b(byte b,
byte val,
int off)
public static byte read1b(byte b,
int off)
public static byte read2b(byte b,
int off)
public static int clen(int values,
int bpv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||