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.adapter.enumerable.PhysType' - 1 code snippet(s) found

 Sample 1. Code Sample / Example / Snippet of org.apache.calcite.adapter.enumerable.PhysType

  public Result implement(EnumerableRelImplementor implementor, Prefer pref) {

PhysType physType =

PhysTypeImpl.of(

implementor.getTypeFactory(),

getRowType(),

pref.preferArray());



if (table instanceof JsonTable) {

return implementor.result(

physType,

Blocks.toBlock(

Expressions.call(table.getExpression(JsonTable.class),

"enumerable")));

}

return implementor.result(

physType,

Blocks.toBlock(

Expressions.call(table.getExpression(CsvTranslatableTable.class),

"project", Expressions.constant(fields))));

}


   Like      Feedback      org.apache.calcite.adapter.enumerable.PhysType



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