当前位置: 首页>>代码示例>>Java>>正文


Java BigInt.int2bigInt方法代码示例

本文整理汇总了Java中scala.math.BigInt.int2bigInt方法的典型用法代码示例。如果您正苦于以下问题:Java BigInt.int2bigInt方法的具体用法?Java BigInt.int2bigInt怎么用?Java BigInt.int2bigInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在scala.math.BigInt的用法示例。


在下文中一共展示了BigInt.int2bigInt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPojoWithCollection

import scala.math.BigInt; //导入方法依赖的package包/类
public static DataSet<PojoWithCollection> getPojoWithCollection(ExecutionEnvironment env) {
	List<PojoWithCollection> data = new ArrayList<>();

	List<Pojo1> pojosList1 = new ArrayList<>();
	pojosList1.add(new Pojo1("a", "aa"));
	pojosList1.add(new Pojo1("b", "bb"));

	List<Pojo1> pojosList2 = new ArrayList<>();
	pojosList2.add(new Pojo1("a2", "aa2"));
	pojosList2.add(new Pojo1("b2", "bb2"));

	PojoWithCollection pwc1 = new PojoWithCollection();
	pwc1.pojos = pojosList1;
	pwc1.key = new IntValue(0);
	pwc1.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc1.scalaBigInt = BigInt.int2bigInt(10);
	pwc1.bigDecimalKeepItNull = null;
	
	// use calendar to make it stable across time zones
	GregorianCalendar gcl1 = new GregorianCalendar(2033, 04, 18);
	pwc1.sqlDate = new java.sql.Date(gcl1.getTimeInMillis());
	pwc1.mixed = new ArrayList<Object>();
	Map<StringValue, IntValue> map = new HashMap<>();
	map.put(new StringValue("someKey"), new IntValue(1));
	pwc1.mixed.add(map);
	pwc1.mixed.add(new File("/this/is/wrong"));
	pwc1.mixed.add("uhlala");

	PojoWithCollection pwc2 = new PojoWithCollection();
	pwc2.pojos = pojosList2;
	pwc2.key = new IntValue(0);
	pwc2.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc2.scalaBigInt = BigInt.int2bigInt(31104000);
	pwc2.bigDecimalKeepItNull = null;
	
	GregorianCalendar gcl2 = new GregorianCalendar(1976, 4, 3);
	pwc2.sqlDate = new java.sql.Date(gcl2.getTimeInMillis()); // 1976

	data.add(pwc1);
	data.add(pwc2);

	return env.fromCollection(data);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:44,代码来源:ValueCollectionDataSets.java

示例2: getPojoWithCollection

import scala.math.BigInt; //导入方法依赖的package包/类
public static DataSet<PojoWithCollection> getPojoWithCollection(ExecutionEnvironment env) {
	List<PojoWithCollection> data = new ArrayList<>();

	List<Pojo1> pojosList1 = new ArrayList<>();
	pojosList1.add(new Pojo1("a", "aa"));
	pojosList1.add(new Pojo1("b", "bb"));

	List<Pojo1> pojosList2 = new ArrayList<>();
	pojosList2.add(new Pojo1("a2", "aa2"));
	pojosList2.add(new Pojo1("b2", "bb2"));

	PojoWithCollection pwc1 = new PojoWithCollection();
	pwc1.pojos = pojosList1;
	pwc1.key = 0;
	pwc1.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc1.scalaBigInt = BigInt.int2bigInt(10);
	pwc1.bigDecimalKeepItNull = null;
	
	// use calendar to make it stable across time zones
	GregorianCalendar gcl1 = new GregorianCalendar(2033, 4, 18);
	pwc1.sqlDate = new java.sql.Date(gcl1.getTimeInMillis());
	pwc1.mixed = new ArrayList<>();
	Map<String, Integer> map = new HashMap<>();
	map.put("someKey", 1); // map.put("anotherKey", 2); map.put("third", 3);
	pwc1.mixed.add(map);
	pwc1.mixed.add(new File("/this/is/wrong"));
	pwc1.mixed.add("uhlala");

	PojoWithCollection pwc2 = new PojoWithCollection();
	pwc2.pojos = pojosList2;
	pwc2.key = 0;
	pwc2.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc2.scalaBigInt = BigInt.int2bigInt(31104000);
	pwc2.bigDecimalKeepItNull = null;
	
	GregorianCalendar gcl2 = new GregorianCalendar(1976, 4, 3);
	pwc2.sqlDate = new java.sql.Date(gcl2.getTimeInMillis()); // 1976


	data.add(pwc1);
	data.add(pwc2);

	return env.fromCollection(data);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:45,代码来源:CollectionDataSets.java

示例3: getPojoWithCollection

import scala.math.BigInt; //导入方法依赖的package包/类
public static DataSet<PojoWithCollection> getPojoWithCollection(ExecutionEnvironment env) {
	List<PojoWithCollection> data = new ArrayList<>();

	List<Pojo1> pojosList1 = new ArrayList<>();
	pojosList1.add(new Pojo1("a", "aa"));
	pojosList1.add(new Pojo1("b", "bb"));

	List<Pojo1> pojosList2 = new ArrayList<>();
	pojosList2.add(new Pojo1("a2", "aa2"));
	pojosList2.add(new Pojo1("b2", "bb2"));

	PojoWithCollection pwc1 = new PojoWithCollection();
	pwc1.pojos = pojosList1;
	pwc1.key = new IntValue(0);
	pwc1.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc1.scalaBigInt = BigInt.int2bigInt(10);
	pwc1.bigDecimalKeepItNull = null;

	// use calendar to make it stable across time zones
	GregorianCalendar gcl1 = new GregorianCalendar(2033, 04, 18);
	pwc1.sqlDate = new java.sql.Date(gcl1.getTimeInMillis());
	pwc1.mixed = new ArrayList<Object>();
	Map<StringValue, IntValue> map = new HashMap<>();
	map.put(new StringValue("someKey"), new IntValue(1));
	pwc1.mixed.add(map);
	pwc1.mixed.add(new File("/this/is/wrong"));
	pwc1.mixed.add("uhlala");

	PojoWithCollection pwc2 = new PojoWithCollection();
	pwc2.pojos = pojosList2;
	pwc2.key = new IntValue(0);
	pwc2.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc2.scalaBigInt = BigInt.int2bigInt(31104000);
	pwc2.bigDecimalKeepItNull = null;

	GregorianCalendar gcl2 = new GregorianCalendar(1976, 4, 3);
	pwc2.sqlDate = new java.sql.Date(gcl2.getTimeInMillis()); // 1976

	data.add(pwc1);
	data.add(pwc2);

	return env.fromCollection(data);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:44,代码来源:ValueCollectionDataSets.java

示例4: getPojoWithCollection

import scala.math.BigInt; //导入方法依赖的package包/类
public static DataSet<PojoWithCollection> getPojoWithCollection(ExecutionEnvironment env) {
	List<PojoWithCollection> data = new ArrayList<>();

	List<Pojo1> pojosList1 = new ArrayList<>();
	pojosList1.add(new Pojo1("a", "aa"));
	pojosList1.add(new Pojo1("b", "bb"));

	List<Pojo1> pojosList2 = new ArrayList<>();
	pojosList2.add(new Pojo1("a2", "aa2"));
	pojosList2.add(new Pojo1("b2", "bb2"));

	PojoWithCollection pwc1 = new PojoWithCollection();
	pwc1.pojos = pojosList1;
	pwc1.key = 0;
	pwc1.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc1.scalaBigInt = BigInt.int2bigInt(10);
	pwc1.bigDecimalKeepItNull = null;

	// use calendar to make it stable across time zones
	GregorianCalendar gcl1 = new GregorianCalendar(2033, 4, 18);
	pwc1.sqlDate = new java.sql.Date(gcl1.getTimeInMillis());
	pwc1.mixed = new ArrayList<>();
	Map<String, Integer> map = new HashMap<>();
	map.put("someKey", 1); // map.put("anotherKey", 2); map.put("third", 3);
	pwc1.mixed.add(map);
	pwc1.mixed.add(new File("/this/is/wrong"));
	pwc1.mixed.add("uhlala");

	PojoWithCollection pwc2 = new PojoWithCollection();
	pwc2.pojos = pojosList2;
	pwc2.key = 0;
	pwc2.bigInt = BigInteger.valueOf(Long.MAX_VALUE).multiply(BigInteger.TEN);
	pwc2.scalaBigInt = BigInt.int2bigInt(31104000);
	pwc2.bigDecimalKeepItNull = null;

	GregorianCalendar gcl2 = new GregorianCalendar(1976, 4, 3);
	pwc2.sqlDate = new java.sql.Date(gcl2.getTimeInMillis()); // 1976

	data.add(pwc1);
	data.add(pwc2);

	return env.fromCollection(data);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:44,代码来源:CollectionDataSets.java


注:本文中的scala.math.BigInt.int2bigInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。