Class DataFrameColumn<T>
java.lang.Object
org.snpsift.annotate.mem.dataFrame.dataFrameColumn.DataFrameColumn<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataFrameColumnBool
,DataFrameColumnChar
,DataFrameColumnDouble
,DataFrameColumnInt
,DataFrameColumnLong
,DataFrameColumnString
A wrapper for a data column of primitive type T
A Data Column is a column of a specific data tyle (String, Float, Long, etc.) that is stored using primitive types for memory efficiency.
The data that can be null, so we need to store a bit array to indicate which data is null.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
check()
Check data consistencyget
(int i) Get value at index i, considering null dataprotected abstract T
getData
(int i) getName()
boolean
isNull
(int i) Is the data at index i null?void
resize()
Resize and memory optimize the datavoid
Set value at index i, consideting null dataprotected abstract void
Set data at index iabstract int
size()
Number of elements in this DataColumnabstract long
Memory size of this object (approximate size in bytes)toString()
-
Field Details
-
MAX_NUMBER_OF_ELEMENTS_TO_SHOW
public static final int MAX_NUMBER_OF_ELEMENTS_TO_SHOW- See Also:
-
name
-
isNUllData
-
-
Constructor Details
-
DataFrameColumn
-
-
Method Details
-
check
public void check()Check data consistency -
getName
-
isNull
public boolean isNull(int i) Is the data at index i null? -
get
Get value at index i, considering null data -
getData
-
resize
public void resize()Resize and memory optimize the data -
set
Set value at index i, consideting null data -
setData
Set data at index i -
size
public abstract int size()Number of elements in this DataColumn -
sizeBytes
public abstract long sizeBytes()Memory size of this object (approximate size in bytes) -
toString
-