public class MLMatrix
extends org.apache.spark.sql.DataFrame
| Modifier and Type | Field and Description |
|---|---|
protected MatrixCharacteristics |
mc |
protected MLContext |
ml |
| Modifier | Constructor and Description |
|---|---|
protected |
MLMatrix(org.apache.spark.sql.DataFrame df,
MatrixCharacteristics mc,
MLContext ml) |
protected |
MLMatrix(org.apache.spark.sql.SQLContext sqlContext,
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan logicalPlan,
MLContext ml) |
protected |
MLMatrix(org.apache.spark.sql.SQLContext sqlContext,
org.apache.spark.sql.SQLContext.QueryExecution queryExecution,
MLContext ml) |
agg, agg, agg, agg, agg, alias, alias, apply, as, as, as, cache, coalesce, col, collect, collectAsList, collectToPython, columns, count, createJDBCTable, cube, cube, cube, cube, describe, describe, distinct, drop, drop, dropDuplicates, dropDuplicates, dropDuplicates, dtypes, except, explain, explain, explode, explode, filter, filter, first, flatMap, foreach, foreachPartition, groupBy, groupBy, groupBy, groupBy, head, head, inputFiles, insertInto, insertInto, insertIntoJDBC, intersect, isLocal, javaRDD, javaToPython, join, join, join, join, join, join, limit, logicalPlan, map, mapPartitions, na, numericColumns, orderBy, orderBy, orderBy, orderBy, org$apache$spark$sql$DataFrame$$collect, org$apache$spark$sql$DataFrame$$execute$1, org$apache$spark$sql$DataFrame$$rowFunction$1, org$apache$spark$sql$DataFrame$$withPlan, persist, persist, printSchema, queryExecution, randomSplit, randomSplit, randomSplit, rdd, registerTempTable, repartition, repartition, repartition, repartition, repartition, resolve, rollup, rollup, rollup, rollup, sample, sample, save, save, save, save, save, save, saveAsParquetFile, saveAsTable, saveAsTable, saveAsTable, saveAsTable, saveAsTable, saveAsTable, schema, select, select, select, select, selectExpr, selectExpr, show, show, show, show, showString, showString$default$2, sort, sort, sort, sort, sortWithinPartitions, sortWithinPartitions, sortWithinPartitions, sortWithinPartitions, sqlContext, stat, take, takeAsList, toDF, toDF, toDF, toJavaRDD, toJSON, toSchemaRDD, toString, transform, unionAll, unpersist, unpersist, where, where, withColumn, withColumn, withColumnRenamed, withNewExecutionId, writeprotected MatrixCharacteristics mc
protected MLContext ml
protected MLMatrix(org.apache.spark.sql.SQLContext sqlContext,
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan logicalPlan,
MLContext ml)
protected MLMatrix(org.apache.spark.sql.SQLContext sqlContext,
org.apache.spark.sql.SQLContext.QueryExecution queryExecution,
MLContext ml)
protected MLMatrix(org.apache.spark.sql.DataFrame df,
MatrixCharacteristics mc,
MLContext ml)
throws DMLRuntimeException
DMLRuntimeExceptionpublic void write(String filePath, String format) throws IOException, DMLException
filePath - the file pathformat - the formatIOException - if IOException occursDMLException - if DMLException occurspublic long numRows()
throws IOException,
DMLException
IOException - if IOException occursDMLException - if DMLException occurspublic long numCols()
throws IOException,
DMLException
IOException - if IOException occursDMLException - if DMLException occurspublic int rowsPerBlock()
public int colsPerBlock()
public MLMatrix $greater(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $less(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $greater$eq(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $less$eq(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $eq$eq(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $bang$eq(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $up(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix exp(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $plus(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix add(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $minus(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix minus(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $times(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix elementWiseMultiply(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $div(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix divide(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $percent$div$percent(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix integerDivision(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $percent$percent(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix modulus(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $percent$times$percent(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix multiply(MLMatrix that) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix transpose() throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $plus(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix add(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $minus(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix minus(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $times(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix elementWiseMultiply(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $div(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix divide(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $greater(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $less(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $greater$eq(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $less$eq(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $eq$eq(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionpublic MLMatrix $bang$eq(Double scalar) throws IOException, DMLException
IOExceptionDMLExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.