org.apache.calcite.linq4j.Enumerable.take()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(110)

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

Enumerable.take介绍

暂无

代码示例

代码示例来源:origin: Qihoo360/Quicksql

@Test public void testThetaFullJoinBothEmpty() {
 assertThat(
   EnumerableDefaults.thetaJoin(EMPS.take(0), DEPTS.take(0), EQUAL_DEPTNO,
     EMP_DEPT_TO_STRING, true, true).toList().toString(),
   equalTo("[]"));
}

代码示例来源:origin: org.apache.calcite/calcite-core

@Test public void testThetaFullJoinBothEmpty() {
 assertThat(
   EnumerableDefaults.thetaJoin(EMPS.take(0), DEPTS.take(0), EQUAL_DEPTNO,
     EMP_DEPT_TO_STRING, true, true).toList().toString(),
   equalTo("[]"));
}

代码示例来源:origin: Qihoo360/Quicksql

@Test public void testThetaFullJoinRightEmpty() {
 assertThat(
   EnumerableDefaults.thetaJoin(EMPS, DEPTS.take(0), EQUAL_DEPTNO,
     EMP_DEPT_TO_STRING, true, true).toList().toString(),
   equalTo("[{Fred, 10, null, null}, {Theodore, 20, null, null}, "
     + "{Sebastian, 20, null, null}, {Joe, 30, null, null}]"));
}

代码示例来源:origin: org.apache.calcite/calcite-core

@Test public void testThetaFullJoinRightEmpty() {
 assertThat(
   EnumerableDefaults.thetaJoin(EMPS, DEPTS.take(0), EQUAL_DEPTNO,
     EMP_DEPT_TO_STRING, true, true).toList().toString(),
   equalTo("[{Fred, 10, null, null}, {Theodore, 20, null, null}, "
     + "{Sebastian, 20, null, null}, {Joe, 30, null, null}]"));
}

代码示例来源:origin: org.apache.calcite/calcite-core

@Test public void testThetaFullJoinLeftEmpty() {
 assertThat(
   EnumerableDefaults.thetaJoin(EMPS.take(0), DEPTS, EQUAL_DEPTNO,
     EMP_DEPT_TO_STRING, true, true)
     .orderBy(Functions.identitySelector()).toList().toString(),
   equalTo("[{null, null, 15, Marketing}, {null, null, 20, Sales}]"));
}

代码示例来源:origin: Qihoo360/Quicksql

@Test public void testThetaFullJoinLeftEmpty() {
 assertThat(
   EnumerableDefaults.thetaJoin(EMPS.take(0), DEPTS, EQUAL_DEPTNO,
     EMP_DEPT_TO_STRING, true, true)
     .orderBy(Functions.identitySelector()).toList().toString(),
   equalTo("[{null, null, 15, Marketing}, {null, null, 20, Sales}]"));
}

相关文章