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 StringgetData(int i) static DataFrameColumnStringCreate a StringColumn from an array of stringsvoidresize()Resize and memory optimize the dataprotected voidSet data at index iintsize()Number of elements in this DataColumnlongMemory 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:
getDatain classDataFrameColumn<String>
-
getData
Get the data, used for testing -
resize
public void resize()Resize and memory optimize the data- Overrides:
resizein classDataFrameColumn<String>
-
setData
Description copied from class:DataFrameColumnSet data at index i- Specified by:
setDatain classDataFrameColumn<String>
-
size
public int size()Description copied from class:DataFrameColumnNumber of elements in this DataColumn- Specified by:
sizein classDataFrameColumn<String>
-
sizeBytes
public long sizeBytes()Memory size of this object (approximate size in bytes)- Specified by:
sizeBytesin classDataFrameColumn<String>
-