water.fvec
Class CX2Chunk

java.lang.Object
  extended by water.Iced
      extended by water.fvec.Chunk
          extended by water.fvec.CX2Chunk
All Implemented Interfaces:
java.lang.Cloneable, Freezable

public class CX2Chunk
extends Chunk

SPARSE shorts. A list of rows that are non-zero, and the value.


Field Summary
 
Fields inherited from class water.fvec.Chunk
_chk, _len, _start, _vec
 
Constructor Summary
CX2Chunk(long[] ls, int[] xs, int len2, int len)
           
CX2Chunk(long[] ls, int[] xs, int len2, int nzcnt, int nacnt)
           
 
Method Summary
protected  long at8_impl(int idx)
           
protected  double atd_impl(int idx)
          Chunk-specific readers.
protected  boolean isNA_impl(int i)
           
 Chunk read(AutoBuffer bb)
          Deserialize from the AutoBuffer into a pre-existing 'this' object.
 AutoBuffer write(AutoBuffer bb)
          Chunk-specific implementations of read & write
 
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
 

Constructor Detail

CX2Chunk

public CX2Chunk(long[] ls,
                int[] xs,
                int len2,
                int nzcnt,
                int nacnt)

CX2Chunk

public CX2Chunk(long[] ls,
                int[] xs,
                int len2,
                int len)
Method Detail

at8_impl

protected long at8_impl(int idx)
Specified by:
at8_impl in class Chunk

atd_impl

protected double atd_impl(int idx)
Description copied from class: Chunk
Chunk-specific readers.

Specified by:
atd_impl in class Chunk

isNA_impl

protected final boolean isNA_impl(int i)
Specified by:
isNA_impl in class Chunk

write

public AutoBuffer write(AutoBuffer bb)
Description copied from class: Chunk
Chunk-specific implementations of read & write

Specified by:
write in interface Freezable
Specified by:
write in class Chunk

read

public Chunk read(AutoBuffer bb)
Description copied from interface: Freezable
Deserialize from the AutoBuffer into a pre-existing 'this' object.

Specified by:
read in interface Freezable
Specified by:
read in class Chunk