本文整理了Java中org.ujmp.core.Matrix.getValueType()
方法的一些代码示例,展示了Matrix.getValueType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getValueType()
方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:getValueType
暂无
代码示例来源:origin: ujmp/universal-java-matrix-package
public static Matrix calcNew(Matrix matrix) {
return calcNew(matrix.getValueType(), matrix);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public ValueType getValueType() {
return getSource().getValueType();
}
代码示例来源:origin: ujmp/universal-java-matrix-package
} else {
String size = Coordinates.toString(matrix.getSize());
String vt = matrix.getValueType().name();
代码示例来源:origin: ujmp/universal-java-matrix-package
List<Sortable<?, Long>> rows = new ArrayList<Sortable<?, Long>>();
switch (m.getValueType()) {
case BIGDECIMAL:
for (long r = 0; r < rowCount; r++) {
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testSortStringNew() throws Exception {
Matrix m1 = getMatrix(ValueType.STRING);
Matrix m2 = m1.sortrows(Ret.NEW, 2, false);
assertEquals(ValueType.STRING, m2.getValueType());
assertEquals(getResult(ValueType.STRING), m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testSortStringReverseNew() throws Exception {
Matrix m1 = getMatrix(ValueType.STRING);
Matrix m2 = m1.sortrows(Ret.NEW, 2, true);
assertEquals(ValueType.STRING, m2.getValueType());
assertEquals(getResultReverse(ValueType.STRING), m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testSortBigDecimalReverseNew() throws Exception {
Matrix m1 = getMatrix(ValueType.BIGDECIMAL);
Matrix m2 = m1.sortrows(Ret.NEW, 2, true);
assertEquals(ValueType.BIGDECIMAL, m2.getValueType());
assertEquals(getResultReverse(ValueType.BIGDECIMAL), m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testSortDoubleNew() throws Exception {
Matrix m1 = getMatrix(ValueType.DOUBLE);
Matrix m2 = m1.sortrows(Ret.NEW, 2, false);
assertEquals(ValueType.DOUBLE, m2.getValueType());
assertEquals(getResult(ValueType.DOUBLE), m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testSortDoubleReverseNew() throws Exception {
Matrix m1 = getMatrix(ValueType.DOUBLE);
Matrix m2 = m1.sortrows(Ret.NEW, 2, true);
assertEquals(ValueType.DOUBLE, m2.getValueType());
assertEquals(getResultReverse(ValueType.DOUBLE), m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testSortBigDecimalNew() throws Exception {
Matrix m1 = getMatrix(ValueType.BIGDECIMAL);
Matrix m2 = m1.sortrows(Ret.NEW, 2, false);
assertEquals(ValueType.BIGDECIMAL, m2.getValueType());
assertEquals(getResult(ValueType.BIGDECIMAL), m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
switch (matrix.getValueType()) {
case DOUBLE:
cb.setSQLType(Types.DOUBLE);
代码示例来源:origin: ujmp/universal-java-matrix-package
valueType = matrices[0].getValueType();
positions = new long[matrices.length];
long pos = 0;
for (int i = 0; i < matrices.length; i++) {
Matrix m = matrices[i];
if (!valueType.equals(m.getValueType())) {
valueType = ValueType.OBJECT;
内容来源于网络,如有侵权,请联系作者删除!