예제 #1
0
void IndexDesc::print(FILE* ofd, const char* indent, const char* title)
{
#pragma nowarn(1506)   // warning elimination 
  BUMP_INDENT(indent);
#pragma warn(1506)  // warning elimination  
  cout << title << " " << this << " "
    << indexLevels_ << "," << clusteringIndexFlag_
    << " pf=" << partFunc_ << " fs=" << fileSet_
    << endl;
  indexColumns_.print(ofd, indent, "IndexDesc::indexColumns_");
  indexKey_.print(ofd, indent, "IndexDesc::indexKey_");
  orderOfKeyValues_.print(ofd, indent, "IndexDesc::orderOfKeyValues_");
  clusteringKey_.print(ofd, indent, "IndexDesc::clusteringKey_");
}
예제 #2
0
// -----------------------------------------------------------------------
// Print function for TableDescList
// -----------------------------------------------------------------------
void TableDescList::print(FILE* ofd, const char* indent, const char* title)
{
#ifndef NDEBUG
#pragma nowarn(1506)   // warning elimination
    BUMP_INDENT(indent);
#pragma warn(1506)  // warning elimination

    for (CollIndex i = 0; i < entries(); i++)
    {
        fprintf(ofd,"%s%s[%2d] = (%p)\n",NEW_INDENT,title,i,at(i));
        // at(i)->print(ofd,indent);
    }
#endif
} // TableDescList::print()
void NAColumnArray::print(FILE* ofd, const char* indent, const char* title,
                          CollHeap *c, char *buf) const
{
  Space * space = (Space *)c;
  char mybuf[1000];
#pragma nowarn(1506)   // warning elimination
  BUMP_INDENT(indent);
#pragma warn(1506)  // warning elimination
  for (CollIndex i = 0; i < entries(); i++)
  {
    snprintf(mybuf, sizeof(mybuf), "%s%s[%2d] =", NEW_INDENT, title, i);
    PRINTIT(ofd, c, space, buf, mybuf);
    at(i)->print(ofd, "", "", c, buf);
  }
}
예제 #4
0
// LCOV_EXCL_START - dpm
void TableDesc::print(FILE* ofd, const char* indent, const char* title)
{
#ifndef NDEBUG
    BUMP_INDENT(indent);
    cout << title << " " << this << " NATable=" << (void*)table_
         << " ix=" << indexes_.entries() << "," << clusteringIndex_
         << " stat=" << colStats_.entries() << endl;
    for (CollIndex i = 0; i < indexes_.entries(); i++)
        indexes_[i]->print(ofd, indent, "TableDesc::indexes");
    clusteringIndex_->print(ofd, indent, "TableDesc::clusteringIndex_");
    corrName_.print(ofd, indent);
    colList_.print(ofd, indent, "TableDesc::colList_");
    colVEGList_.print(ofd, indent, "TableDesc::colVEGList_");
    cout << "cnstrnt=" << checkConstraints_.entries() << endl << endl;

#endif
} // TableDesc::print()