congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Metadata
Code IndexAdd Tabnine to your IDE (free)

How to use
Metadata
in
org.apache.calcite.rel.metadata

Best Java code snippets using org.apache.calcite.rel.metadata.Metadata (Showing top 3 results out of 315)

origin: Qihoo360/Quicksql

builder.add(metadata.rel());
if (args != null) {
 for (Object arg : args) {
long timestamp = planner.getRelMetadataTimestamp(metadata.rel());
origin: org.apache.calcite/calcite-core

builder.add(metadata.rel());
if (args != null) {
 for (Object arg : args) {
long timestamp = planner.getRelMetadataTimestamp(metadata.rel());
origin: dremio/dremio-oss

builder.add(method);
builder.add(metadata.rel());
if (args != null) {
 for (Object arg : args) {
CacheKey key = new CacheKey(internalKey);
long timestamp = planner.getRelMetadataTimestamp(metadata.rel());
org.apache.calcite.rel.metadataMetadata

Javadoc

Metadata about a relational expression.

For particular types of metadata, a sub-class defines one of more methods to query that metadata. Then a RelMetadataProvider can offer those kinds of metadata for particular sub-classes of RelNode.

User code (typically in a planner rule or an implementation of RelNode#computeSelfCost(org.apache.calcite.plan.RelOptPlanner,RelMetadataQuery)) acquires a Metadata instance by calling RelNode#metadata.

A Metadata instance already knows which particular RelNodeit is describing, so the methods do not pass in the RelNode. In fact, quite a few metadata methods have no extra parameters. For instance, you can get the row-count as follows:

 
RelNode rel; 
double rowCount = rel.metadata(RowCount.class).rowCount(); 

Most used methods

  • rel
    Returns the relational expression that this metadata is about.

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now