public class MatrixIndexes extends Object implements org.apache.hadoop.io.WritableComparable<MatrixIndexes>, org.apache.hadoop.io.RawComparator<MatrixIndexes>, Externalizable
Constructor and Description |
---|
MatrixIndexes() |
MatrixIndexes(long r,
long c) |
MatrixIndexes(MatrixIndexes indexes) |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2) |
int |
compare(MatrixIndexes m1,
MatrixIndexes m2) |
int |
compareTo(MatrixIndexes other) |
boolean |
equals(Object other) |
long |
getColumnIndex() |
long |
getRowIndex() |
int |
hashCode() |
void |
readExternal(ObjectInput is)
Redirects the default java serialization via externalizable to our default
hadoop writable serialization for consistency/maintainability.
|
void |
readFields(DataInput in) |
MatrixIndexes |
setIndexes(long r,
long c) |
MatrixIndexes |
setIndexes(MatrixIndexes that) |
String |
toString() |
void |
write(DataOutput out) |
void |
writeExternal(ObjectOutput os)
Redirects the default java serialization via externalizable to our default
hadoop writable serialization for consistency/maintainability.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public MatrixIndexes()
public MatrixIndexes(long r, long c)
public MatrixIndexes(MatrixIndexes indexes)
public long getRowIndex()
public long getColumnIndex()
public MatrixIndexes setIndexes(long r, long c)
public MatrixIndexes setIndexes(MatrixIndexes that)
public int compareTo(MatrixIndexes other)
compareTo
in interface Comparable<MatrixIndexes>
public boolean equals(Object other)
equals
in interface Comparator<MatrixIndexes>
equals
in class Object
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readExternal(ObjectInput is) throws IOException
readExternal
in interface Externalizable
is
- object inputIOException
- if IOException occurspublic void writeExternal(ObjectOutput os) throws IOException
writeExternal
in interface Externalizable
os
- object outputIOException
- if IOException occurspublic int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface org.apache.hadoop.io.RawComparator<MatrixIndexes>
public int compare(MatrixIndexes m1, MatrixIndexes m2)
compare
in interface Comparator<MatrixIndexes>
Copyright © 2018 The Apache Software Foundation. All rights reserved.