// AllPhysicalTables returns the table IDs of all tables and partition tables.
AllPhysicalTables returns the table IDs of all tables and partition tables.
// AllPhysicalTables returns the table IDs of all tables and partition tables .
func (s *schemaWrap4Owner) AllPhysicalTables() []model.TableID {
	if s.allPhysicalTablesCache != nil {
		return s.allPhysicalTablesCache
	}
	tables := s.schemaSnapshot.Tables()
	s.allPhysicalTablesCache = make([]model.TableID, 0, len(tables))
	for _, tblInfo := range tables {
		if s.shouldIgnoreTable(tblInfo) {
			continue
		}
		if pi := tblInfo.GetPartitionInfo(); pi != nil {
			for _, partition := range pi.Definitions {
				s.allPhysicalTablesCache = append(s.allPhysicalTablesCache, partition.ID)
			}
		} else {
			s.allPhysicalTablesCache = append(s.allPhysicalTablesCache, tblInfo.ID)
		}
	}
	return s.allPhysicalTablesCache
}
func ( s * schemaWrap4Owner ) AllPhysicalTables ( ) [ ] model . TableID { if s . allPhysicalTablesCache != nil { return s . allPhysicalTablesCache } tables := s . schemaSnapshot . Tables ( ) s . allPhysicalTablesCache = make ( [ ] model . TableID , 0 , len ( tables ) ) for _ , tblInfo := range tables { if s . shouldIgnoreTable ( tblInfo ) { continue } if pi := tblInfo . GetPartitionInfo ( ) ; pi != nil { for _ , partition := range pi . Definitions { s . allPhysicalTablesCache = append ( s . allPhysicalTablesCache , partition . ID ) } } else { s . allPhysicalTablesCache = append ( s . allPhysicalTablesCache , tblInfo . ID ) } } return s . allPhysicalTablesCache }
AllPhysicalTables returns the table IDs of all tables and partition tables.
AllPhysicalTables returns the table IDs of all tables and partition tables .