Interface Wrapper

All Known Subinterfaces:
Context, Prepare.CatalogReader, Prepare.PreparingTable, RelOptTable, SqlValidatorCatalogReader, SqlValidatorTable
All Known Implementing Classes:
AbstractModifiableTable, AbstractModifiableView, AbstractQueryableTable, AbstractTable, ArrowTable, CalciteCatalogReader, CassandraTable, CsvFilterableTable, CsvScannableTable, CsvStreamScannableTable, CsvTable, CsvTable, CsvTranslatableTable, CsvTranslatableTable, DelegatingSqlValidatorCatalogReader, DelegatingSqlValidatorTable, DruidTable, ElasticsearchTable, GeodeSimpleScannableTable, GeodeTable, InnodbTable, JdbcCatalogSchema, JdbcSchema, JdbcTable, JsonScannableTable, JsonTable, ListTransientTable, MaterializedViewTable, MazeTable, MockCatalogReader, MockCatalogReader.MockDynamicTable, MockCatalogReader.MockModifiableViewRelOptTable, MockCatalogReader.MockModifiableViewRelOptTable.MockModifiableViewTable, MockCatalogReader.MockRelViewTable, MockCatalogReader.MockTable, MockCatalogReader.MockViewTable, MockCatalogReader.MustFilterMockTable, MockCatalogReaderDynamic, MockCatalogReaderExtended, MockCatalogReaderSimple, MockSqlOperatorTable.MyAggFunc, MockSqlOperatorTable.MyAvgAggFunction, ModifiableViewTable, MongoTable, MustFilterMockCatalogReader, PigTable, PigTable, Prepare.AbstractPreparingTable, RedisTable, RelOptAbstractTable, RelOptTableImpl, Smalls.MazeTable, Smalls.SimpleTable, SqlAbstractGroupFunction, SqlAggFunction, SqlAnyValueAggFunction, SqlAvgAggFunction, SqlBasicAggFunction, SqlBitOpAggFunction, SqlCountAggFunction, SqlCovarAggFunction, SqlFirstLastValueAggFunction, SqlHistogramAggFunction, SqlJsonArrayAggAggFunction, SqlJsonObjectAggAggFunction, SqlLeadLagAggFunction, SqlMinMaxAggFunction, SqlNthValueAggFunction, SqlNtileAggFunction, SqlRankFunction, SqlRegrCountAggFunction, SqlSingleValueAggFunction, SqlSumAggFunction, SqlSumEmptyIsZeroAggFunction, SqlUserDefinedAggFunction, StarTable, ViewTable

public interface Wrapper
Mix-in interface that allows you to find sub-objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <C> Optional<C>
    maybeUnwrap(Class<C> aClass)
    Finds an instance of an interface implemented by this object, or returns Optional.empty() if this object does not support that interface.
    <C> @Nullable C
    unwrap(Class<C> aClass)
    Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
    default <C> C
    unwrapOrThrow(Class<C> aClass)
    Finds an instance of an interface implemented by this object, or throws NullPointerException if this object does not support that interface.
  • Method Details

    • unwrap

      <C> @Nullable C unwrap(Class<C> aClass)
      Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
    • unwrapOrThrow

      @API(since="1.27", status=INTERNAL) default <C> C unwrapOrThrow(Class<C> aClass)
      Finds an instance of an interface implemented by this object, or throws NullPointerException if this object does not support that interface.
    • maybeUnwrap

      @API(since="1.27", status=INTERNAL) default <C> Optional<C> maybeUnwrap(Class<C> aClass)
      Finds an instance of an interface implemented by this object, or returns Optional.empty() if this object does not support that interface.