public class UniversalTensor extends java.lang.Object implements TensorData
| Constructor and Description |
|---|
UniversalTensor(int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes)
Deprecated.
|
UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
double[] doubleArray,
Representable[] columnTypes)
Deprecated.
|
UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
ColumnUtils utils)
Deprecated.
|
UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
java.lang.Object[] bytesArray,
ColumnUtils utils)
Deprecated.
|
UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
Representable[] columnTypes)
Deprecated.
|
UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
Representable[] columnTypes)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int floatArity,
int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes,
boolean sort,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int floatArity,
int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int floatArity,
int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
Representable[] columnTypes,
boolean sort,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
Representable[] columnTypes,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
Representable[] columnTypes,
boolean sort,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
Deprecated.
|
UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int booleanArity,
int valueArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
boolean[] booleanArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
Universal Tensor constructors should ideally not be used to create a UniversalTensor.
|
UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int booleanArity,
int bytesArity,
int valueArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
boolean[] booleanArray,
java.lang.Object[] bytesArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
Universal Tensor constructors should ideally not be used to create a UniversalTensor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality() |
int |
estimatedCardinality() |
int |
getArity() |
int |
getBooleanArity() |
boolean[] |
getBooleanArray() |
int |
getBytesArity() |
java.lang.Object[] |
getBytesArray() |
int[] |
getColumnIndex() |
int |
getDoubleArity() |
double[] |
getDoubleArray() |
int |
getFloatArity() |
float[] |
getFloatArray() |
int |
getIntArity() |
int[] |
getIntArray() |
int |
getLongArity() |
long[] |
getLongArray() |
int |
getStringArity() |
java.lang.String[] |
getStringArray() |
Representable[] |
getTypes() |
int |
getValueArity() |
boolean |
isEmpty() |
TensorIterator |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShape@Deprecated
public UniversalTensor(int intArity,
int longArity,
int floatArity,
int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes,
int... columnIndex)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int intArity,
int longArity,
int floatArity,
int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int intArity,
int longArity,
int floatArity,
int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes,
boolean sort,
int... columnIndex)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
Representable[] columnTypes,
int... columnIndex)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
Representable[] columnTypes,
boolean sort,
int... columnIndex)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
Representable[] columnTypes,
boolean sort,
int... columnIndex)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int[] intArray,
long[] longArray,
float[] floatArray,
Representable[] columnTypes)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
Representable[] columnTypes)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
double[] doubleArray,
Representable[] columnTypes)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
Representable[] columnTypes)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
ColumnUtils utils)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
java.lang.Object[] bytesArray,
ColumnUtils utils)
UniversalTensorBuilder@Deprecated
public UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
UniversalTensorBuilderpublic UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int booleanArity,
int valueArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
boolean[] booleanArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
intArity - number of int columns in a tensor row (includes dimensions and values)longArity - number of long columns in a tensor row (includes dimensions and values)stringArity - number of string columns in a tensor row (includes dimensions and values)floatArity - number of float columns in a tensor row (includes dimensions and values)doubleArity - number of double columns in a tensor row (includes dimensions and values)booleanArity - number of boolean columns in a tensor row (includes dimensions and values)valueArity - number of value columns in a tensor row. This value is needed as it's possible for UniversalTensors
to have more than one value dimensionintArray - array corresponding to the int dimensions/valueslongArray - array corresponding to the long dimensions/valuesstringArray - array corresponding to the string dimensionsfloatArray - array corresponding to the float values. Floats can not be a dimensiondoubleArray - array corresponding to the double values. Doubles can not be a dimensionbooleanArray - array corresponding to the boolean dimensions/valuescolumnTypes - columnTypes representing the tensorsize - size of the tensor. (Number of rows).sort - sorts the tensor by the dimension if truecolumnIndex - columnIndicespublic UniversalTensor(int intArity,
int longArity,
int stringArity,
int floatArity,
int doubleArity,
int booleanArity,
int bytesArity,
int valueArity,
int[] intArray,
long[] longArray,
java.lang.String[] stringArray,
float[] floatArray,
double[] doubleArray,
boolean[] booleanArray,
java.lang.Object[] bytesArray,
Representable[] columnTypes,
int size,
boolean sort,
int... columnIndex)
intArity - number of int columns in a tensor row (includes dimensions and values)longArity - number of long columns in a tensor row (includes dimensions and values)stringArity - number of string columns in a tensor row (includes dimensions and values)floatArity - number of float columns in a tensor row (includes dimensions and values)doubleArity - number of double columns in a tensor row (includes dimensions and values)booleanArity - number of boolean columns in a tensor row (includes dimensions and values)bytesArity - number of bytes columns in a tensor row (includes dimensions and values)valueArity - number of value columns in a tensor row. This value is needed as it's possible for UniversalTensors
to have more than one value dimensionintArray - array corresponding to the int dimensions/valueslongArray - array corresponding to the long dimensions/valuesstringArray - array corresponding to the string dimensionsfloatArray - array corresponding to the float values. Floats can not be a dimensiondoubleArray - array corresponding to the double values. Doubles can not be a dimensionbooleanArray - array corresponding to the boolean dimensions/valuesbytesArray - array corresponding to the bytes dimensions/valuescolumnTypes - columnTypes representing the tensorsize - size of the tensor. (Number of rows).sort - sorts the tensor by the dimension if truecolumnIndex - columnIndicespublic int getArity()
getArity in interface TensorDatapublic Representable[] getTypes()
getTypes in interface TensorDatapublic int estimatedCardinality()
estimatedCardinality in interface TensorDatapublic int cardinality()
cardinality in interface TensorDatapublic boolean isEmpty()
isEmpty in interface TensorDatapublic TensorIterator iterator()
iterator in interface TensorDatapublic int[] getIntArray()
public int getIntArity()
public long[] getLongArray()
public int getLongArity()
public java.lang.String[] getStringArray()
public int getStringArity()
public float[] getFloatArray()
public int getFloatArity()
public double[] getDoubleArray()
public int getDoubleArity()
public boolean[] getBooleanArray()
public int getBooleanArity()
public java.lang.Object[] getBytesArray()
public int getBytesArity()
public int getValueArity()
public int[] getColumnIndex()