@Test public void testDivide2() { int[] originalValues = new int[] {32, 42, 40, 57, 52, -2}; IntColumn originals = IntColumn.create("Originals", new IntArrayList(originalValues)); Table t = Table.create("t", originals); FloatColumn divided = originals.divide(3.3); System.out.println(divided.print()); }
@Test public void testIntIsIn() { int[] originalValues = new int[] {32, 42, 40, 57, 52, -2}; int[] inValues = new int[] {10, -2, 57, -5}; IntColumn inColumn = IntColumn.create("In", new IntArrayList(inValues)); IntColumn initial = new IntColumn("Test", originalValues.length); Table t = Table.create("t", initial); for (int value : originalValues) { initial.add(value); } Filter filter = column("Test").isIn(inColumn); Table result = t.selectWhere(filter); System.out.println(result.print()); }