Class CacheMatrix<R,C>
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,java.lang.Number>
-
- com.macrofocus.molap.dataframe.matrix.AbstractMatrix<R,C>
-
- com.macrofocus.molap.dataframe.matrix.CacheMatrix<R,C>
-
public class CacheMatrix<R,C> extends AbstractMatrix<R,C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description CacheMatrix(Matrix<R,C> matrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UniqueIndex<C>
getColumnIndex()
Gets the index used to access the columns.double[][]
getData()
double
getDouble(R row, C column)
UniqueIndex<R>
getRowIndex()
Gets the index used to access the rows.boolean
isAvailable(R row, C column)
-
Methods inherited from class com.macrofocus.molap.dataframe.matrix.AbstractMatrix
getColumnClass, getColumnVector, getRow, getRowClass, getRowVector, getValueAt, join
-
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, 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, getColumnCount, getColumnKey, getColumnName, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
Methods inherited from interface com.macrofocus.molap.dataframe.matrix.Matrix
scalarDivide, scalarMult, scalarPlus
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable(R row, C column)
- Specified by:
isAvailable
in interfaceMatrix<R,C>
- Overrides:
isAvailable
in classAbstractMatrix<R,C>
-
getData
public double[][] getData()
-
getRowIndex
public UniqueIndex<R> getRowIndex()
Description copied from interface:DataFrame
Gets the index used to access the rows.- Returns:
- the row index
-
getColumnIndex
public UniqueIndex<C> getColumnIndex()
Description copied from interface:DataFrame
Gets the index used to access the columns.- Returns:
- the column index
-
-