Search Java Code Snippets


  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.





#Java - Code Snippets for '#Org.apache.calcite.sql.SqlSetOption' - 1 code snippet(s) found

 Sample 1. Code Sample / Example / Snippet of org.apache.calcite.sql.SqlSetOption

  private static void checkSqlSetOptionSame(SqlNode node) {

SqlSetOption opt = (SqlSetOption) node;

SqlNode[] sqlNodes = new SqlNode[opt.getOperandList().size()];

SqlCall returned = opt.getOperator().createCall(

opt.getFunctionQuantifier(),

opt.getParserPosition(),

opt.getOperandList().toArray(sqlNodes));

assertThat((Class) opt.getClass(), equalTo((Class) returned.getClass()));

SqlSetOption optRet = (SqlSetOption) returned;

assertThat(optRet.getScope(), is(opt.getScope()));

assertThat(optRet.getName(), is(opt.getName()));

assertThat(optRet.getFunctionQuantifier(), is(opt.getFunctionQuantifier()));

assertThat(optRet.getParserPosition(), is(opt.getParserPosition()));

assertThat(optRet.getValue(), is(opt.getValue()));

assertThat(optRet.toString(), is(opt.toString()));

}


   Like      Feedback      org.apache.calcite.sql.SqlSetOption



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner