Class MatrixIndexes
- java.lang.Object
- 
- org.apache.sysds.runtime.matrix.data.MatrixIndexes
 
- 
- All Implemented Interfaces:
- Externalizable,- Serializable,- Comparable<MatrixIndexes>,- Comparator<MatrixIndexes>,- org.apache.hadoop.io.RawComparator<MatrixIndexes>,- org.apache.hadoop.io.Writable,- org.apache.hadoop.io.WritableComparable<MatrixIndexes>
 
 public class MatrixIndexes extends Object implements org.apache.hadoop.io.WritableComparable<MatrixIndexes>, org.apache.hadoop.io.RawComparator<MatrixIndexes>, Externalizable This represent the indexes to the blocks of the matrix. Please note that these indexes are 1-based, whereas the data in the block are zero-based (as they are double arrays).- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MatrixIndexes()MatrixIndexes(long r, long c)MatrixIndexes(MatrixIndexes indexes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)intcompare(MatrixIndexes m1, MatrixIndexes m2)intcompareTo(MatrixIndexes other)booleanequals(Object other)longgetColumnIndex()longgetRowIndex()inthashCode()voidreadExternal(ObjectInput is)Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.voidreadFields(DataInput in)MatrixIndexessetIndexes(long r, long c)MatrixIndexessetIndexes(MatrixIndexes that)StringtoString()voidwrite(DataOutput out)voidwriteExternal(ObjectOutput os)Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.- 
Methods inherited from interface java.util.Comparatorreversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Constructor Detail- 
MatrixIndexespublic MatrixIndexes() 
 - 
MatrixIndexespublic MatrixIndexes(long r, long c)
 - 
MatrixIndexespublic MatrixIndexes(MatrixIndexes indexes) 
 
- 
 - 
Method Detail- 
getRowIndexpublic long getRowIndex() 
 - 
getColumnIndexpublic long getColumnIndex() 
 - 
setIndexespublic MatrixIndexes setIndexes(long r, long c) 
 - 
setIndexespublic MatrixIndexes setIndexes(MatrixIndexes that) 
 - 
compareTopublic int compareTo(MatrixIndexes other) - Specified by:
- compareToin interface- Comparable<MatrixIndexes>
 
 - 
equalspublic boolean equals(Object other) - Specified by:
- equalsin interface- Comparator<MatrixIndexes>
- Overrides:
- equalsin class- Object
 
 - 
readFieldspublic void readFields(DataInput in) throws IOException - Specified by:
- readFieldsin interface- org.apache.hadoop.io.Writable
- Throws:
- IOException
 
 - 
writepublic void write(DataOutput out) throws IOException - Specified by:
- writein interface- org.apache.hadoop.io.Writable
- Throws:
- IOException
 
 - 
readExternalpublic void readExternal(ObjectInput is) throws IOException Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.- Specified by:
- readExternalin interface- Externalizable
- Parameters:
- is- object input
- Throws:
- IOException- if IOException occurs
 
 - 
writeExternalpublic void writeExternal(ObjectOutput os) throws IOException Redirects the default java serialization via externalizable to our default hadoop writable serialization for consistency/maintainability.- Specified by:
- writeExternalin interface- Externalizable
- Parameters:
- os- object output
- Throws:
- IOException- if IOException occurs
 
 - 
comparepublic int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)- Specified by:
- comparein interface- org.apache.hadoop.io.RawComparator<MatrixIndexes>
 
 - 
comparepublic int compare(MatrixIndexes m1, MatrixIndexes m2) - Specified by:
- comparein interface- Comparator<MatrixIndexes>
 
 
- 
 
-