org.ujmp.core.Matrix.getValueType()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.ujmp.core.Matrix.getValueType()方法的一些代码示例,展示了Matrix.getValueType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getValueType()方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:getValueType

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;

相关文章

Matrix类方法