Class BlockPartitioner
- java.lang.Object
- 
- org.apache.spark.Partitioner
- 
- org.apache.sysds.runtime.instructions.spark.data.BlockPartitioner
 
 
- 
- All Implemented Interfaces:
- Serializable,- scala.Serializable
 
 public class BlockPartitioner extends org.apache.spark.PartitionerDefault partitioner used for all binary block rdd operations in order to enable sufficient local aggregation independent of the aggregation direction (row/col-wise). Especially, on large squared matrices (as common for factorization or graph algorithms), this is crucial for performance.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BlockPartitioner(DataCharacteristics mc, int numParts)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetPartition(Object arg0)inthashCode()intnumPartitions()
 
- 
- 
- 
Constructor Detail- 
BlockPartitionerpublic BlockPartitioner(DataCharacteristics mc, int numParts) 
 
- 
 - 
Method Detail- 
getPartitionpublic int getPartition(Object arg0) - Specified by:
- getPartitionin class- org.apache.spark.Partitioner
 
 - 
numPartitionspublic int numPartitions() - Specified by:
- numPartitionsin class- org.apache.spark.Partitioner
 
 
- 
 
-