Search Java Code Snippets


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





Java - Code Samples

 Sample 1. Code Sample / Example / Snippet of org.apache.calcite.rel.metadata.RelMetadataQuery

    public static PhysProj create(final RelNode input,

final List<RexNode> projects, RelDataType rowType) {

final RelOptCluster cluster = input.getCluster();

final RelMetadataQuery mq = RelMetadataQuery.instance();

final RelTraitSet traitSet =

cluster.traitSet().replace(PHYSICAL)

.replaceIfs(

RelCollationTraitDef.INSTANCE,

new Supplier<List<RelCollation>>() {

public List<RelCollation> get() {

return RelMdCollation.project(mq, input, projects);

}

});

return new PhysProj(cluster, traitSet, input, projects, rowType);

}


   Like      Feedback      org.apache.calcite.rel.metadata.RelMetadataQuery



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