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;
}
Aggregations