public class MLBlock extends Object implements org.apache.spark.sql.Row
| Modifier and Type | Field and Description |
|---|---|
MatrixBlock |
block |
MatrixIndexes |
indexes |
| Constructor and Description |
|---|
MLBlock(MatrixIndexes indexes,
MatrixBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyNull() |
Object |
apply(int arg0) |
org.apache.spark.sql.Row |
copy() |
int |
fieldIndex(String arg0) |
Object |
get(int arg0) |
<T> T |
getAs(int arg0) |
<T> T |
getAs(String arg0) |
boolean |
getBoolean(int arg0) |
byte |
getByte(int arg0) |
Date |
getDate(int arg0) |
BigDecimal |
getDecimal(int arg0) |
static org.apache.spark.sql.types.StructType |
getDefaultSchemaForBinaryBlock() |
double |
getDouble(int arg0) |
float |
getFloat(int arg0) |
int |
getInt(int arg0) |
<K,V> Map<K,V> |
getJavaMap(int arg0) |
<T> List<T> |
getList(int arg0) |
long |
getLong(int arg0) |
<K,V> scala.collection.Map<K,V> |
getMap(int arg0) |
<T> scala.collection.Seq<T> |
getSeq(int arg0) |
short |
getShort(int arg0) |
String |
getString(int arg0) |
org.apache.spark.sql.Row |
getStruct(int arg0) |
Timestamp |
getTimestamp(int position) |
<T> scala.collection.immutable.Map<String,T> |
getValuesMap(scala.collection.Seq<String> arg0) |
boolean |
isNullAt(int arg0) |
int |
length() |
String |
mkString() |
String |
mkString(String arg0) |
String |
mkString(String arg0,
String arg1,
String arg2) |
org.apache.spark.sql.types.StructType |
schema() |
int |
size() |
scala.collection.Seq<Object> |
toSeq() |
public MatrixIndexes indexes
public MatrixBlock block
public MLBlock(MatrixIndexes indexes, MatrixBlock block)
public boolean anyNull()
anyNull in interface org.apache.spark.sql.Rowpublic Object apply(int arg0)
apply in interface org.apache.spark.sql.Rowpublic org.apache.spark.sql.Row copy()
copy in interface org.apache.spark.sql.Rowpublic Object get(int arg0)
get in interface org.apache.spark.sql.Rowpublic <T> T getAs(int arg0)
getAs in interface org.apache.spark.sql.Rowpublic <T> T getAs(String arg0)
getAs in interface org.apache.spark.sql.Rowpublic boolean getBoolean(int arg0)
getBoolean in interface org.apache.spark.sql.Rowpublic byte getByte(int arg0)
getByte in interface org.apache.spark.sql.Rowpublic Date getDate(int arg0)
getDate in interface org.apache.spark.sql.Rowpublic BigDecimal getDecimal(int arg0)
getDecimal in interface org.apache.spark.sql.Rowpublic double getDouble(int arg0)
getDouble in interface org.apache.spark.sql.Rowpublic float getFloat(int arg0)
getFloat in interface org.apache.spark.sql.Rowpublic int getInt(int arg0)
getInt in interface org.apache.spark.sql.Rowpublic <K,V> Map<K,V> getJavaMap(int arg0)
getJavaMap in interface org.apache.spark.sql.Rowpublic <T> List<T> getList(int arg0)
getList in interface org.apache.spark.sql.Rowpublic long getLong(int arg0)
getLong in interface org.apache.spark.sql.Rowpublic int fieldIndex(String arg0)
fieldIndex in interface org.apache.spark.sql.Rowpublic <K,V> scala.collection.Map<K,V> getMap(int arg0)
getMap in interface org.apache.spark.sql.Rowpublic <T> scala.collection.immutable.Map<String,T> getValuesMap(scala.collection.Seq<String> arg0)
getValuesMap in interface org.apache.spark.sql.Rowpublic <T> scala.collection.Seq<T> getSeq(int arg0)
getSeq in interface org.apache.spark.sql.Rowpublic short getShort(int arg0)
getShort in interface org.apache.spark.sql.Rowpublic String getString(int arg0)
getString in interface org.apache.spark.sql.Rowpublic org.apache.spark.sql.Row getStruct(int arg0)
getStruct in interface org.apache.spark.sql.Rowpublic boolean isNullAt(int arg0)
isNullAt in interface org.apache.spark.sql.Rowpublic int length()
length in interface org.apache.spark.sql.Rowpublic String mkString()
mkString in interface org.apache.spark.sql.Rowpublic String mkString(String arg0)
mkString in interface org.apache.spark.sql.Rowpublic String mkString(String arg0, String arg1, String arg2)
mkString in interface org.apache.spark.sql.Rowpublic org.apache.spark.sql.types.StructType schema()
schema in interface org.apache.spark.sql.Rowpublic int size()
size in interface org.apache.spark.sql.Rowpublic scala.collection.Seq<Object> toSeq()
toSeq in interface org.apache.spark.sql.Rowpublic static org.apache.spark.sql.types.StructType getDefaultSchemaForBinaryBlock()
public Timestamp getTimestamp(int position)
getTimestamp in interface org.apache.spark.sql.RowCopyright © 2017 The Apache Software Foundation. All rights reserved.