本文整理汇总了C++中NATraceList::append方法的典型用法代码示例。如果您正苦于以下问题:C++ NATraceList::append方法的具体用法?C++ NATraceList::append怎么用?C++ NATraceList::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NATraceList
的用法示例。
在下文中一共展示了NATraceList::append方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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()
示例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()
示例3: 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()
示例4: getDetailInfo
NATraceList StmtDDLRevokeComponentPrivilege::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
//
// component name
//
detailTextList.append(displayLabel1()); // component name
//
// user role name
//
detailTextList.append(displayLabel2()); // user role name
//
// component privilege name list
//
const ConstStringList & privs = getComponentPrivilegeNameList();
detailText = "Component Privilege Name List [";
detailText += LongToNAString((Lng32)privs.entries());
detailText += " element(s)]";
detailTextList.append(detailText);
for (CollIndex i = 0; i < privs.entries(); i++)
{
detailText = "[";
detailText += LongToNAString((Lng32)i);
detailText += "] ";
detailText += *privs[i];
detailTextList.append(detailText);
}
//
// with revoke option
//
detailText = "is Grant Option For clause specified? ";
detailText += YesNo(isGrantOptionForSpecified());
detailTextList.append(detailText);
return detailTextList;
} // StmtDDLRevokeComponentPrivilege::getDetailInfo
示例5: 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;
}
示例6: getGranteeArray
NATraceList
StmtDDLPublish::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
//
// object name
//
detailTextList.append(displayLabel1()); // object name
//
// privileges
//
StmtDDLPublish * localThis = (StmtDDLPublish *)this;
detailTextList.append(localThis->getChild(PUBLISH_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());
}
return detailTextList;
} // StmtDDLPublish::getDetailInfo
示例7:
NATraceList
ElemDDLUdrLibrary::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailTextList.append(displayLabel1());
return detailTextList;
}
示例8: getSpecialAttributesText
NATraceList
ElemDDLUdfSpecialAttributes::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailText = "special attributes = ";
detailText += getSpecialAttributesText();
detailTextList.append(detailText);
return detailTextList;
}
示例9:
NATraceList
ElemDDLColViewDef::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailTextList.append(displayLabel1()); // column name
detailTextList.append(displayLabel2()); // heading
return detailTextList;
} // ElemDDLColViewDef::getDetailInfo()
示例10: getVersionTag
NATraceList
ElemDDLUdfVersionTag::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailText = "version tag = ";
detailText += getVersionTag();
detailTextList.append(detailText);
return detailTextList;
}
示例11: getPartitionKeyColumnList
NATraceList
ElemDDLPartitionByColumnList::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
ElemDDLNode * pPartitionKeyColumnList = getPartitionKeyColumnList();
//
// kind of store option
//
detailTextList.append(displayLabel1());
//
// column name list
//
if (pPartitionKeyColumnList EQU NULL)
{
detailTextList.append("No column name list.");
return detailTextList;
}
detailText = "Column Name List [";
detailText += LongToNAString((Lng32)pPartitionKeyColumnList->entries());
detailText += " element(s)]:";
detailTextList.append(detailText);
for (CollIndex i = 0; i < pPartitionKeyColumnList->entries(); i++)
{
detailText = "[column ";
detailText += LongToNAString((Lng32)i);
detailText += "]";
detailTextList.append(detailText);
detailTextList.append(" ", (*pPartitionKeyColumnList)[i]
->getDetailInfo());
}
return detailTextList;
}
示例12:
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;
}
示例13: YesNo
NATraceList
ElemDDLUdrDeterministic::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailText = "deterministic? ";
detailText += YesNo(getDeterministic());
detailTextList.append(detailText);
return detailTextList;
}
示例14: UnsignedToNAString
NATraceList
ElemDDLUdrSqlAccess::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailText = "SqlAccess: ";
detailText += UnsignedToNAString((UInt32)getSqlAccess());
detailTextList.append(detailText);
return detailTextList;
}
示例15:
NATraceList
StmtDDLDropSequence::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
//
// table name
//
detailTextList.append(displayLabel1());
return detailTextList;
}