MCPcopy Create free account
hub / github.com/Kitware/VTK / GetNumberOfColumnNamesInIndex

Method GetNumberOfColumnNamesInIndex

IO/SQL/vtkSQLDatabaseSchema.cxx:780–798  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

778
779//------------------------------------------------------------------------------
780int vtkSQLDatabaseSchema::GetNumberOfColumnNamesInIndex(int tblHandle, int idxHandle)
781{
782 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
783 {
784 vtkErrorMacro(
785 "Cannot get the number of column names in index of non-existent table " << tblHandle);
786 return -1;
787 }
788
789 if (idxHandle < 0 ||
790 idxHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Indices.size()))
791 {
792 vtkErrorMacro("Cannot get the number of column names of non-existent index "
793 << idxHandle << " in table " << tblHandle);
794 return -1;
795 }
796
797 return static_cast<int>(this->Internals->Tables[tblHandle].Indices[idxHandle].ColumnNames.size());
798}
799
800//------------------------------------------------------------------------------
801int vtkSQLDatabaseSchema::GetNumberOfTriggersInTable(int tblHandle)

Callers 3

GetIndexSpecificationMethod · 0.80
GetIndexSpecificationMethod · 0.80
GetIndexSpecificationMethod · 0.80

Calls 2

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected