public class TensorIndexes extends Object implements org.apache.hadoop.io.WritableComparable<TensorIndexes>, Externalizable
Constructor and Description |
---|
TensorIndexes() |
TensorIndexes(long[] ix) |
TensorIndexes(TensorIndexes indexes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TensorIndexes other) |
boolean |
equals(Object other) |
long |
getIndex(int dim) |
long[] |
getIndexes() |
int |
getNumDims() |
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) |
TensorIndexes |
setIndexes(long[] ix) |
TensorIndexes |
setIndexes(TensorIndexes 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.
|
public TensorIndexes()
public TensorIndexes(long[] ix)
public TensorIndexes(TensorIndexes indexes)
public long getIndex(int dim)
public long[] getIndexes()
public int getNumDims()
public TensorIndexes setIndexes(long[] ix)
public TensorIndexes setIndexes(TensorIndexes that)
public int compareTo(TensorIndexes other)
compareTo
in interface Comparable<TensorIndexes>
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 occursCopyright © 2020 The Apache Software Foundation. All rights reserved.