public class ColumnSelection extends Object
| Constructor and Description |
|---|
ColumnSelection(DataFrame dataFrame,
DataFrameColumn... columns) |
| Modifier and Type | Method and Description |
|---|---|
DataFrame |
allRows()
Returns a dataframe containing the selected columns and all rows from the original dataframe.
|
DataFrame |
where(FilterPredicate predicate)
Returns a dataframe containing the selected columns and rows filtered by a
FilterPredicate
an input value. |
DataFrame |
where(String predicateString)
Returns a dataframe containing the selected columns and rows filtered by a predicate
an input value.
|
DataFrame |
where(String colName,
Comparable value)
Returns a dataframe containing the selected columns and rows where a specified column value equals
an input value.
|
DataFrame |
whereIndex(String indexName,
Comparable... values)
Returns a dataframe containing the selected columns and rows found using a specified index
an input value.
|
public ColumnSelection(DataFrame dataFrame, DataFrameColumn... columns)
public DataFrame where(String colName, Comparable value)
colName - column namevalue - input valuepublic DataFrame where(FilterPredicate predicate)
FilterPredicate
an input value.predicate - input predicatepublic DataFrame where(String predicateString)
predicateString - input predicate stringpublic DataFrame whereIndex(String indexName, Comparable... values)
indexName - name of indexvalues - index valuespublic DataFrame allRows()
Copyright © 2020. All rights reserved.