Package org.datavec.api.writable
Class ArrayWritable
- java.lang.Object
-
- org.datavec.api.writable.ArrayWritable
-
- All Implemented Interfaces:
Serializable
,Writable
- Direct Known Subclasses:
BytesWritable
,NDArrayWritable
public abstract class ArrayWritable extends Object implements Writable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayWritable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
getDouble(long i)
abstract float
getFloat(long i)
abstract int
getInt(long i)
abstract long
getLong(long i)
abstract long
length()
double
toDouble()
Convert Writable to double.float
toFloat()
Convert Writable to float.int
toInt()
Convert Writable to int.long
toLong()
Convert Writable to long.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datavec.api.writable.Writable
getType, readFields, write, writeType
-
-
-
-
Method Detail
-
length
public abstract long length()
-
getDouble
public abstract double getDouble(long i)
-
getFloat
public abstract float getFloat(long i)
-
getInt
public abstract int getInt(long i)
-
getLong
public abstract long getLong(long i)
-
toDouble
public double toDouble()
Description copied from interface:Writable
Convert Writable to double. Whether this is supported depends on the specific writable.
-
toFloat
public float toFloat()
Description copied from interface:Writable
Convert Writable to float. Whether this is supported depends on the specific writable.
-
toInt
public int toInt()
Description copied from interface:Writable
Convert Writable to int. Whether this is supported depends on the specific writable.
-
-