Class AbstractRowMajorDataFrame<R,C,V>
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.AbstractMutableDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.rowmajor.AbstractRowMajorDataFrame<R,C,V>
-
- All Implemented Interfaces:
DataFrame<R,C,V>
,MutableDataFrame<R,C,V>
,RowMajorDataFrame<R,C,V>
- Direct Known Subclasses:
AccessorRowMajorDataFrame
,HashMapRowMajorDataFrame
public abstract class AbstractRowMajorDataFrame<R,C,V> extends AbstractMutableDataFrame<R,C,V> implements RowMajorDataFrame<R,C,V>
Created by luc on 22.03.17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractRowMajorDataFrame.AbstractQuery
class
AbstractRowMajorDataFrame.And
class
AbstractRowMajorDataFrame.DefaultQueryBuilder
class
AbstractRowMajorDataFrame.Equal
class
AbstractRowMajorDataFrame.GreaterThan
class
AbstractRowMajorDataFrame.Or
class
AbstractRowMajorDataFrame.Overlap
class
AbstractRowMajorDataFrame.SmallerThan
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.dataframe.rowmajor.RowMajorDataFrame
RowMajorDataFrame.Column<R,V>, RowMajorDataFrame.Query<R,C,V>, RowMajorDataFrame.QueryBuilder<R,C,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected UniqueIndex<C>
columnIndex
-
Constructor Summary
Constructors Constructor Description AbstractRowMajorDataFrame(C... columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAfterRow(R insertionPoint, R row)
void
addBeforeRow(R insertionPoint, R row)
void
addRow(int i, R row)
void
addRow(R row)
UniqueIndex<C>
getColumnIndex()
Gets the index used to access the columns.RowMajorDataFrame.QueryBuilder<R,C,V>
getQueryBuilder()
Series<C,?>
getRow(R r)
Returns a series of all the values of a given row.java.lang.Class
getRowClass(R r)
Returns the most specific superclass for all cell values in a row.UniqueIndex<R>
getRowIndex()
Gets the index used to access the rows.DataFrame
join(Series series, C[] cs)
void
remove(R row)
void
replaceRow(R oldRow, R newRow)
java.util.List<R>
retrieve(RowMajorDataFrame.Query<R,C,V> query)
-
Methods inherited from class com.macrofocus.molap.dataframe.AbstractMutableDataFrame
reindexRows, reindexRows
-
Methods inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnCount, getColumnKey, getColumnName, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getCube, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, notifyDataFrameChanged, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.dataframe.DataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnClass, getColumnCount, getColumnKey, getColumnName, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getValueAt, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
Methods inherited from interface com.macrofocus.molap.dataframe.MutableDataFrame
reindexRows, reindexRows, setValueAt
-
-
-
-
Field Detail
-
columnIndex
protected UniqueIndex<C> columnIndex
-
-
Constructor Detail
-
AbstractRowMajorDataFrame
public AbstractRowMajorDataFrame(C... columns)
-
-
Method Detail
-
getRowClass
public java.lang.Class getRowClass(R r)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a row.- Specified by:
getRowClass
in interfaceDataFrame<R,C,V>
- Parameters:
r
- the key of the row- Returns:
- the common ancestor class of the object values in the row.
-
getRowIndex
public UniqueIndex<R> getRowIndex()
Description copied from interface:DataFrame
Gets the index used to access the rows.- Specified by:
getRowIndex
in interfaceDataFrame<R,C,V>
- Returns:
- the row index
-
getColumnIndex
public UniqueIndex<C> getColumnIndex()
Description copied from interface:DataFrame
Gets the index used to access the columns.- Specified by:
getColumnIndex
in interfaceDataFrame<R,C,V>
- Returns:
- the column index
-
replaceRow
public void replaceRow(R oldRow, R newRow)
- Specified by:
replaceRow
in interfaceRowMajorDataFrame<R,C,V>
-
addRow
public void addRow(int i, R row)
- Specified by:
addRow
in interfaceRowMajorDataFrame<R,C,V>
-
addBeforeRow
public void addBeforeRow(R insertionPoint, R row)
- Specified by:
addBeforeRow
in interfaceRowMajorDataFrame<R,C,V>
-
addAfterRow
public void addAfterRow(R insertionPoint, R row)
- Specified by:
addAfterRow
in interfaceRowMajorDataFrame<R,C,V>
-
retrieve
public java.util.List<R> retrieve(RowMajorDataFrame.Query<R,C,V> query)
- Specified by:
retrieve
in interfaceRowMajorDataFrame<R,C,V>
-
getQueryBuilder
public RowMajorDataFrame.QueryBuilder<R,C,V> getQueryBuilder()
- Specified by:
getQueryBuilder
in interfaceRowMajorDataFrame<R,C,V>
-
-