@@ -167,8 +167,8 @@ void testMultipleSchemas() {
167167 assertNotNull (schemas );
168168 SchemaPlus rootSchema = schemas .root ();
169169
170- assertNotNull (rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME ));
171- assertNotNull (rootSchema .getSubSchema (SYSTEM_SCHEMA_NAME ));
170+ assertNotNull (rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME ));
171+ assertNotNull (rootSchema .subSchemas (). get (SYSTEM_SCHEMA_NAME ));
172172 }
173173
174174 /** Basic schema with several tables. */
@@ -187,7 +187,7 @@ public void testBasicSchema() {
187187 assertNotNull (schemas );
188188 SchemaPlus rootSchema = schemas .root ();
189189
190- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
190+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
191191 assertNotNull (schemaPlus );
192192
193193 IgniteSchema schema = unwrapSchema (schemaPlus );
@@ -204,7 +204,7 @@ public void testBasicSchema() {
204204 CatalogZoneDescriptor zoneDescriptor = catalogManager .catalog (versionAfter ).zone (zoneId );
205205 assertNotNull (zoneDescriptor , "Zone does not exist: " + zoneId );
206206
207- Table table = schema .getTable (tableDescriptor .name ());
207+ Table table = schema .tables (). get (tableDescriptor .name ());
208208 assertThat (table , notNullValue ());
209209
210210 IgniteTable igniteTable = assertInstanceOf (IgniteTable .class , table );
@@ -246,11 +246,11 @@ public void testTableWithZone() {
246246 assertNotNull (schemas );
247247 SchemaPlus rootSchema = schemas .root ();
248248
249- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
249+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
250250 assertNotNull (schemaPlus );
251251
252252 IgniteSchema schema = unwrapSchema (schemaPlus );
253- Table table = schema .getTable ("T" );
253+ Table table = schema .tables (). get ("T" );
254254 assertNotNull (table );
255255
256256 IgniteTable igniteTable = assertInstanceOf (IgniteTable .class , table );
@@ -284,7 +284,7 @@ public void testTableColumns(ColumnType columnType, int precision, int scale) {
284284 assertNotNull (schemas );
285285 SchemaPlus rootSchema = schemas .root ();
286286
287- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
287+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
288288 assertNotNull (schemaPlus );
289289
290290 IgniteTable table = getTable (unwrapSchema (schemaPlus ), "TEST" );
@@ -353,7 +353,7 @@ public void testTableDefaultValue() {
353353 assertNotNull (schemas );
354354 SchemaPlus rootSchema = schemas .root ();
355355
356- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
356+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
357357 assertNotNull (schemaPlus );
358358
359359 IgniteTable table = getTable (unwrapSchema (schemaPlus ), "TEST" );
@@ -405,7 +405,7 @@ public void testTableWithPrimaryKey(TablePrimaryKey primaryKey) {
405405 assertNotNull (schemas );
406406 SchemaPlus rootSchema = schemas .root ();
407407
408- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
408+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
409409 assertNotNull (schemaPlus );
410410
411411 IgniteTable table = getTable (unwrapSchema (schemaPlus ), "TEST" );
@@ -466,7 +466,7 @@ public void testTableDistribution() {
466466 assertNotNull (schemas );
467467 SchemaPlus rootSchema = schemas .root ();
468468
469- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
469+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
470470 assertNotNull (schemaPlus );
471471
472472 {
@@ -517,7 +517,7 @@ public void testHashIndex() {
517517 assertNotNull (schemas );
518518 SchemaPlus rootSchema = schemas .root ();
519519
520- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
520+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
521521 assertNotNull (schemaPlus );
522522
523523 IgniteIndex index = findIndex (unwrapSchema (schemaPlus ), "T1" , "VAL1_IDX" );
@@ -537,7 +537,7 @@ public void testHashIndex() {
537537 assertNotNull (schemas );
538538 SchemaPlus rootSchema = schemas .root ();
539539
540- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
540+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
541541 assertNotNull (schemaPlus );
542542
543543 IgniteIndex index = findIndex (unwrapSchema (schemaPlus ), "T1" , "VAL1_IDX" );
@@ -571,7 +571,7 @@ public void testHashIndexCreationWithTable() {
571571 assertNotNull (schemas );
572572 SchemaPlus rootSchema = schemas .root ();
573573
574- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
574+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
575575 assertNotNull (schemaPlus );
576576
577577 IgniteIndex index = findIndex (unwrapSchema (schemaPlus ), "T1" , "VAL1_IDX" );
@@ -607,7 +607,7 @@ public void testSortedIndex() {
607607 assertNotNull (schemas );
608608 SchemaPlus rootSchema = schemas .root ();
609609
610- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
610+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
611611 assertNotNull (schemaPlus );
612612
613613 IgniteIndex index1 = findIndex (unwrapSchema (schemaPlus ), "T1" , "IDX1" );
@@ -630,7 +630,7 @@ public void testSortedIndex() {
630630 assertNotNull (schemas );
631631 SchemaPlus rootSchema = schemas .root ();
632632
633- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
633+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
634634 assertNotNull (schemaPlus );
635635
636636 IgniteIndex index = findIndex (unwrapSchema (schemaPlus ), "T1" , "IDX1" );
@@ -658,7 +658,7 @@ public void testSortedIndex() {
658658 assertNotNull (schemas );
659659 SchemaPlus rootSchema = schemas .root ();
660660
661- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
661+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
662662 assertNotNull (schemaPlus );
663663
664664 IgniteIndex index = findIndex (unwrapSchema (schemaPlus ), "T1" , "IDX2" );
@@ -696,7 +696,7 @@ public void testSortedIndexCreationWithTable() {
696696 assertNotNull (schemas );
697697 SchemaPlus rootSchema = schemas .root ();
698698
699- SchemaPlus schemaPlus = rootSchema .getSubSchema (PUBLIC_SCHEMA_NAME );
699+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (PUBLIC_SCHEMA_NAME );
700700 assertNotNull (schemaPlus );
701701
702702 IgniteIndex index1 = findIndex (unwrapSchema (schemaPlus ), "T1" , "IDX1" );
@@ -763,7 +763,7 @@ public void testBasicView(SystemViewType viewType, IgniteDistribution distributi
763763 assertNotNull (schemas );
764764 SchemaPlus rootSchema = schemas .root ();
765765
766- SchemaPlus schemaPlus = rootSchema .getSubSchema (SYSTEM_SCHEMA_NAME );
766+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (SYSTEM_SCHEMA_NAME );
767767 assertNotNull (schemaPlus );
768768
769769 {
@@ -804,7 +804,7 @@ public void testViewColumns(SystemViewType viewType, ColumnType columnType, int
804804 assertNotNull (schemas );
805805 SchemaPlus rootSchema = schemas .root ();
806806
807- SchemaPlus schemaPlus = rootSchema .getSubSchema (SYSTEM_SCHEMA_NAME );
807+ SchemaPlus schemaPlus = rootSchema .subSchemas (). get (SYSTEM_SCHEMA_NAME );
808808 assertNotNull (schemaPlus );
809809
810810 CatalogSchemaDescriptor schemaDescriptor = catalogManager .catalog (versionAfter ).schema (SYSTEM_SCHEMA_NAME );
@@ -853,7 +853,7 @@ private static Stream<Arguments> systemViewDistributions() {
853853 }
854854
855855 private static IgniteSystemView getSystemView (IgniteSchema schema , String name ) {
856- Table systemViewTable = schema .getTable (name );
856+ Table systemViewTable = schema .tables (). get (name );
857857 assertNotNull (systemViewTable );
858858
859859 IgniteSystemView systemView = assertInstanceOf (IgniteSystemView .class , systemViewTable );
@@ -869,13 +869,13 @@ private static IgniteSchema unwrapSchema(SchemaPlus schemaPlus) {
869869 }
870870
871871 private static IgniteTable getTable (IgniteSchema schema , String name ) {
872- IgniteTable table = (IgniteTable ) schema .getTable (name );
872+ IgniteTable table = (IgniteTable ) schema .tables (). get (name );
873873 assertNotNull (table );
874874 return table ;
875875 }
876876
877877 private static @ Nullable IgniteIndex findIndex (IgniteSchema schema , String tableName , String indexName ) {
878- IgniteTable table = (IgniteTable ) schema .getTable (tableName );
878+ IgniteTable table = (IgniteTable ) schema .tables (). get (tableName );
879879 assertNotNull (table );
880880 return table .indexes ().get (indexName );
881881 }
0 commit comments