Class DataFrameRow
java.lang.Object
org.snpsift.annotate.mem.dataFrame.DataFrameRow
- All Implemented Interfaces:
Serializable
,Iterable<String>
A DataFrame 'row'.
This acts as an intermediate object between a data frame and a row in the data frame.
It can:
- Iterate over all column names in the data frame.
- Use 'getDataFrame / setDataFrame' to get/set data to/from the dataFrame (lazy evaluation).
- Use 'getDataFrame / setDataFrame' to get/set data to/from the dataFrame (lazy evaluation).
- Use 'get' / 'set' to get/set a single value from this intermediate object (not the dataframe)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataFrameRow
(DataFrame dataFrame, int pos, String ref, String alt) DataFrameRow
(DataFrame dataFrame, int pos, String ref, String alt, int idx) -
Method Summary
Modifier and TypeMethodDescriptiongetAlt()
getDataFrameValue
(String columnName) Get data single column value from the data frameReturn all data for this row from the data frameint
getIdx()
int
getPos()
getRef()
iterator()
void
void
Populate row in DataFrame with the values in this rowvoid
setDataFrame
(String columnName) Set the data frame with a value from this rowvoid
setDataFrame
(String columnName, Object value) Set the data frame with a specific valueprotected void
setIdx
(int idx) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DataFrameRow
-
DataFrameRow
-
-
Method Details
-
getDataFrameValues
Return all data for this row from the data frame -
get
-
getDataFrameValue
Get data single column value from the data frame -
getAlt
-
getIdx
public int getIdx() -
getPos
public int getPos() -
getRef
-
getValues
-
iterator
-
set
-
setDataFrame
Set the data frame with a value from this row -
setDataFrame
Set the data frame with a specific value -
setDataFrame
public void setDataFrame()Populate row in DataFrame with the values in this row -
setIdx
protected void setIdx(int idx) -
toString
-