Search in sources :

Example 1 with BeamSqlSeekableTable

use of org.apache.beam.sdk.extensions.sql.BeamSqlSeekableTable in project beam by apache.

the class BeamJoinRel method seekable.

/**
 * check if {@code BeamRelNode} implements {@code BeamSeekableTable}.
 */
public static boolean seekable(BeamRelNode relNode) {
    if (relNode instanceof BeamIOSourceRel) {
        BeamIOSourceRel srcRel = (BeamIOSourceRel) relNode;
        BeamSqlTable sourceTable = srcRel.getBeamSqlTable();
        if (sourceTable instanceof BeamSqlSeekableTable) {
            return true;
        }
    }
    return false;
}
Also used : BeamSqlSeekableTable(org.apache.beam.sdk.extensions.sql.BeamSqlSeekableTable) BeamSqlTable(org.apache.beam.sdk.extensions.sql.meta.BeamSqlTable)

Aggregations

BeamSqlSeekableTable (org.apache.beam.sdk.extensions.sql.BeamSqlSeekableTable)1 BeamSqlTable (org.apache.beam.sdk.extensions.sql.meta.BeamSqlTable)1