@@ -442,20 +442,20 @@ public void testBasicDecimal64Vector_toJsonString() throws IOException {
442
442
BasicDecimal64Vector re1 = new BasicDecimal64Vector (tmp_string_v ,4 );
443
443
String re = JSONObject .toJSONString (re1 );
444
444
System .out .println (re );
445
- assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :4,\" string\" :\" [0.0000,-123.0043,132.2042,100.0000]\" ,\" table\" :false,\" unitLength\" :8,\" values \" :[0,-1230043,1322042,1000000],\" vector\" :true}" , re );
445
+ assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :4,\" string\" :\" [0.0000,-123.0043,132.2042,100.0000]\" ,\" table\" :false,\" unitLength\" :8,\" unscaledValues \" :[0,-1230043,1322042,1000000],\" vector\" :true}" , re );
446
446
}
447
447
@ Test
448
448
public void testBasicDecimal64Vector_toJsonString_null () throws IOException {
449
449
BasicDecimal64Vector re1 = new BasicDecimal64Vector (2 ,2 );
450
450
String re = JSONObject .toJSONString (re1 );
451
451
System .out .println (re );
452
- assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :2,\" string\" :\" [0.00,0.00]\" ,\" table\" :false,\" unitLength\" :8,\" values \" :[0,0],\" vector\" :true}" , re );
452
+ assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :2,\" string\" :\" [0.00,0.00]\" ,\" table\" :false,\" unitLength\" :8,\" unscaledValues \" :[0,0],\" vector\" :true}" , re );
453
453
}
454
454
@ Test
455
455
public void testBasicDecimal64Vector_getValue () throws IOException {
456
456
String [] tmp_string_v = {"0.0" ,"-123.00432" ,"132.204234" ,"100.0" };
457
457
BasicDecimal64Vector re1 = new BasicDecimal64Vector (tmp_string_v ,4 );
458
- long [] re = re1 .getValues ();
458
+ long [] re = re1 .getUnscaledValues ();
459
459
System .out .println (Arrays .toString (re ));
460
460
assertEquals ("[0, -1230043, 1322042, 1000000]" ,Arrays .toString (re ));
461
461
}
0 commit comments