Class DataFrameColumnString
java.lang.Object
org.snpsift.annotate.mem.dataFrame.dataFrameColumn.DataFrameColumn<String>
org.snpsift.annotate.mem.dataFrame.dataFrameColumn.DataFrameColumnString
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class org.snpsift.annotate.mem.dataFrame.dataFrameColumn.DataFrameColumn
isNUllData, MAX_NUMBER_OF_ELEMENTS_TO_SHOW, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get the data, used for testingprotected String
getData
(int i) static DataFrameColumnString
Create a StringColumn from an array of stringsvoid
resize()
Resize and memory optimize the dataprotected void
Set data at index iint
size()
Number of elements in this DataColumnlong
Memory size of this object (approximate size in bytes)
-
Constructor Details
-
DataFrameColumnString
Constructor- Parameters:
name
-size
- : Number of strings in the columndataSize
- : Total size of all strings (i.e. memory used)
-
-
Method Details
-
of
Create a StringColumn from an array of strings -
getData
- Specified by:
getData
in classDataFrameColumn<String>
-
getData
Get the data, used for testing -
resize
public void resize()Resize and memory optimize the data- Overrides:
resize
in classDataFrameColumn<String>
-
setData
Description copied from class:DataFrameColumn
Set data at index i- Specified by:
setData
in classDataFrameColumn<String>
-
size
public int size()Description copied from class:DataFrameColumn
Number of elements in this DataColumn- Specified by:
size
in classDataFrameColumn<String>
-
sizeBytes
public long sizeBytes()Memory size of this object (approximate size in bytes)- Specified by:
sizeBytes
in classDataFrameColumn<String>
-