当前位置: 首页>>代码示例>>C++>>正文


C++ NATraceList类代码示例

本文整理汇总了C++中NATraceList的典型用法代码示例。如果您正苦于以下问题:C++ NATraceList类的具体用法?C++ NATraceList怎么用?C++ NATraceList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了NATraceList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: LongToNAString

NATraceList
ElemDDLUdfOptimizationHint::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailText = "optimization hint = ";
  detailText +=  LongToNAString((Lng32)getOptimizationKind());
  if (getOptimizationKind() NEQ COM_UDF_NUMBER_OF_UNIQUE_OUTPUT_VALUES)
  {
    detailText +=  " - cost = ";
    detailText +=  LongToNAString((Lng32)getCost());
  }
  else
  {
    detailText += " - number of unique output values = ( ";
    const NAList<ComSInt64> values = getUniqueOutputValues();
    for (CollIndex i = 0; i < values.entries(); i++)
    {
      if (i > 0) detailText += " , ";
      detailText += Int64ToNAString((Int64)values[i]);
    }
    detailText += " )";
  }
  detailTextList.append(detailText);

  return detailTextList;
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:28,代码来源:ElemDDLUdr.cpp

示例2: LongToNAString

NATraceList
ElemDDLConstraintUnique::getDetailInfo() const
{
  NATraceList detailTextList = ElemDDLConstraint::getDetailInfo();

  if (getKeyColumnArray().entries() EQU 0)
  {
    detailTextList.append("No key column list.");
  }
  else
  {
    NAString detailText;

    detailText = "Key Column List [";
    detailText += LongToNAString((Lng32)getKeyColumnArray().entries());
    detailText += " element(s)]:";
    detailTextList.append(detailText);
    
    for (CollIndex i = 0; i < getKeyColumnArray().entries(); i++)
    {
      detailText = "[column ";
      detailText += LongToNAString((Lng32)i);
      detailText += "]";
      detailTextList.append(detailText);
      
      detailTextList.append("    ", getKeyColumnArray()[i]->getDetailInfo());
    }
  }

  return detailTextList;

} // ElemDDLConstraintUnique::getDetailInfo()
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:32,代码来源:ElemDDLConstraint.cpp

示例3:

NATraceList
ElemDDLUdrLibrary::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailTextList.append(displayLabel1());

  return detailTextList;

}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:11,代码来源:ElemDDLUdr.cpp

示例4:

NATraceList
ElemDDLColViewDef::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailTextList.append(displayLabel1());  // column name
  detailTextList.append(displayLabel2());  // heading

  return detailTextList;

} // ElemDDLColViewDef::getDetailInfo()
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:12,代码来源:ElemDDLCol.cpp

示例5: getSpecialAttributesText

NATraceList
ElemDDLUdfSpecialAttributes::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailText = "special attributes = ";
  detailText += getSpecialAttributesText();
  detailTextList.append(detailText);

  return detailTextList;
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:12,代码来源:ElemDDLUdr.cpp

示例6: getVersionTag

NATraceList
ElemDDLUdfVersionTag::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailText = "version tag = ";
  detailText += getVersionTag();
  detailTextList.append(detailText);

  return detailTextList;
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:12,代码来源:ElemDDLUdr.cpp

示例7: YesNo

NATraceList
ElemDDLUdfParallelism::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailText = "canBeParallel? ";
  detailText += YesNo(getCanBeParallel());
  detailTextList.append(detailText);

  return detailTextList;

}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:13,代码来源:ElemDDLUdr.cpp

示例8:

NATraceList
ElemDDLPartitionByOpt::getDetailInfo() const
{
  NATraceList detailTextList;

  //
  // Note that the invoked displayLabel1() is a method of
  // a class derived from class ElemDDLPartitionByOpt
  //
  detailTextList.append(displayLabel1());

  return detailTextList;
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:13,代码来源:ElemDDLPartition.cpp

示例9: UnsignedToNAString

NATraceList
ElemDDLUdrExternalSecurity::getDetailInfo() const
{
  NAString    detailText;
  NATraceList detailTextList;

  detailText = "ExternalSecurity: ";
  detailText += UnsignedToNAString((UInt32)getExternalSecurity());
  detailTextList.append(detailText);

  return detailTextList;

}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:13,代码来源:ElemDDLUdr.cpp

示例10:

NATraceList
StmtDDLDropSequence::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  //
  // table name
  //

  detailTextList.append(displayLabel1());
  
  return detailTextList;
}
开发者ID:RuoYuHP,项目名称:incubator-trafodion,代码行数:14,代码来源:StmtDDLDrop.cpp

示例11: nowarn

NATraceList
ElemDDLUdrMaxResults::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailText = "MaxResults: ";
#pragma nowarn(1506)   // warning elimination 
  detailText += LongToNAString(getMaxResults());
#pragma warn(1506)  // warning elimination 
  detailTextList.append(detailText);

  return detailTextList;

}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:15,代码来源:ElemDDLUdr.cpp

示例12: getGranteeArray

NATraceList
StmtDDLSchGrant::getDetailInfo() const
{
    NAString        detailText;
    NATraceList detailTextList;

    //
    // object name
    //

    detailTextList.append(displayLabel1());   // object name

    //
    // privileges
    //

    StmtDDLSchGrant * localThis = (StmtDDLSchGrant *)this;

    detailTextList.append(localThis->getChild(INDEX_PRIVILEGES)
                          ->castToElemDDLNode()
                          ->castToElemDDLPrivileges()
                          ->getDetailInfo());

    //
    // grantee list
    //

    const ElemDDLGranteeArray & granteeArray = getGranteeArray();

    detailText = "Grantee list [";
    detailText += LongToNAString((Lng32)granteeArray.entries());
    detailText += " element(s)]";
    detailTextList.append(detailText);

    for (CollIndex i = 0; i < granteeArray.entries(); i++)
    {
        detailText = "[grantee ";
        detailText += LongToNAString((Lng32)i);
        detailText += "]";
        detailTextList.append(detailText);

        ComASSERT(granteeArray[i] NEQ NULL AND
                  granteeArray[i]->castToElemDDLGrantee() NEQ NULL);
        detailTextList.append("    ", granteeArray[i]->castToElemDDLGrantee()
                              ->getDetailInfo());
    }

    //
    // with grant option
    //

    detailText = "is with grant option? ";
    detailText += YesNo(localThis->getChild(INDEX_WITH_GRANT_OPTION) NEQ NULL);
    detailTextList.append(detailText);

    return detailTextList;

} // StmtDDLGrant::getDetailInfo
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:58,代码来源:StmtDDLNode.cpp

示例13: type

NATraceList
ElemDDLConstraint::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailTextList.append(displayLabel1());   // constraint name
  detailTextList.append(displayLabel2());   // constraint type (e.g., Not Null)

  detailText = "Constraint kind: ";
  if (getConstraintKind() EQU ElemDDLConstraint::COLUMN_CONSTRAINT_DEF)
  {
    detailText += "Column";
  }
  else
  {
    detailText += "Table";
  }
  detailTextList.append(detailText);

  detailText = "is deferrable? ";
  detailText += YesNo(isDeferrable());
  detailTextList.append(detailText);

  detailText = "is droppable?  ";
  detailText += YesNo(isDroppable());
  detailTextList.append(detailText);

  detailText = "is enforced?  ";
  detailText += YesNo(isEnforced());
  detailTextList.append(detailText);

  return detailTextList;

} // ElemDDLConstraint::getDetailInfo()
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:35,代码来源:ElemDDLConstraint.cpp

示例14: getKeyValueArray

NATraceList
ElemDDLPartitionRange::getDetailInfo() const
{
  //
  // Note that class ElemDDLPartitionRange is derived
  // from class ElemDDLPartitionSystem.
  //
  NAString        detailText;
  NATraceList detailTextList = ElemDDLPartitionSystem::getDetailInfo();

  const ItemConstValueArray & keyValues = getKeyValueArray();

  if (keyValues.entries() NEQ 0)
  {
    detailText = "Key value list [";
    detailText += LongToNAString((Lng32)keyValues.entries());
    detailText += " key value(s)]:";
    detailTextList.append(detailText);
  }
  else
  {
    //
    // only primary (range) partition node is
    // allowed not to contain a list of key values.
    //
    detailText = "Key value not specified.";
    detailTextList.append(detailText);
  }
  for (CollIndex j = 0; j < keyValues.entries(); j++)
  {
    ConstValue * keyVal = keyValues[j];
    
    detailText = "  [key value ";
    detailText += LongToNAString((Lng32)j);
    detailText += "]";
    detailTextList.append(detailText);
    
    detailText = "    Key value:      ";
    detailText += keyVal->getText();
    detailTextList.append(detailText);
    
    detailText = "    Key value type: ";
    detailText += keyVal->getType()->getTypeSQLname();
    detailTextList.append(detailText);
  }

  return detailTextList;

} // ElemDDLPartitionRange::getDetailInfo()
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:49,代码来源:ElemDDLPartition.cpp

示例15: maxSizeFileAttr

NATraceList
ElemDDLPartitionSystem::getDetailInfo() const
{
  NAString        detailText;
  NATraceList detailTextList;

  detailTextList.append(displayLabel1());  // add or drop
  detailTextList.append(displayLabel2());  // location name
  detailTextList.append(displayLabel3());  // location name type

  //
  // file attributes for this partition
  //

  detailTextList.append("File attributes:");

  detailText = "    max size spec? ";
  detailText += YesNo(isMaxSizeSpecified());
  detailTextList.append(detailText);

  detailText = "    maxsizunbound? ";
  detailText += YesNo(isMaxSizeUnbounded());
  detailTextList.append(detailText);

  detailText = "    max size:      ";
  detailText += LongToNAString((Lng32)getMaxSize());
  detailTextList.append(detailText);

#pragma nowarn(1506)   // warning elimination 
  ElemDDLFileAttrMaxSize maxSizeFileAttr(getMaxSize(), 
                                         getMaxSizeUnit());
#pragma warn(1506)  // warning elimination

  detailText = "    max size unit: ";
  detailText += maxSizeFileAttr.getMaxSizeUnitAsNAString();;
  detailTextList.append(detailText);

  return detailTextList;
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:39,代码来源:ElemDDLPartition.cpp


注:本文中的NATraceList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。