com.thomsonreuters.upa.codec.Vector.totalCountHint()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(227)

本文整理了Java中com.thomsonreuters.upa.codec.Vector.totalCountHint()方法的一些代码示例,展示了Vector.totalCountHint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.totalCountHint()方法的具体详情如下:
包路径:com.thomsonreuters.upa.codec.Vector
类名称:Vector
方法名:totalCountHint

Vector.totalCountHint介绍

[英]Indicates the approximate total number of entries sent across all vectors on all parts of the refresh message. totalCountHint is typically used when multiple Vector containers are spread across multiple parts of a refresh message.Such information helps in determining the amount of resources to allocate for caching or displaying all expected entries.
[中]指示在刷新消息的所有部分的所有向量上发送的条目的大致总数。totalCountHint通常在多个向量容器分布在刷新消息的多个部分时使用。这些信息有助于确定为缓存或显示所有预期条目而分配的资源量。

代码示例

代码示例来源:origin: Refinitiv/Elektron-SDK

@Override
public int totalCountHint()
{
  if (!hasTotalCountHint())
    throw ommIUExcept().message("Attempt to totalCountHint() while it is not set.");
  
  return _rsslVector.totalCountHint();
}

代码示例来源:origin: Refinitiv/Elektron-SDK

@Override
public Vector totalCountHint(int totalCountHint)
{
  if (totalCountHint < 0 || totalCountHint > 1073741823)
    throw ommOORExcept().message("totalCountHint is out of range [0 - 1073741823].");
  _rsslVector.applyHasTotalCountHint();
  _rsslVector.totalCountHint(totalCountHint);
  return this;
}

代码示例来源:origin: Refinitiv/Elektron-SDK

xmlString.append("\"");
xmlString.append(" countHint=\"" + vec.totalCountHint() + "\" containerType=\"");
xmlString.append(xmlDumpDataType(vec.containerType()));
xmlString.append("\">\n");

代码示例来源:origin: Refinitiv/Elektron-SDK

return retVal;
System.out.printf("\tVector Header Decoded: TotalCountHint: %d\n", vector.totalCountHint());

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.totalCountHint(1);

代码示例来源:origin: Refinitiv/Elektron-SDK

assertEquals(true, vector.checkHasTotalCountHint());
assertEquals(DataTypes.FIELD_LIST, vector.containerType());
assertEquals(1073741823, vector.totalCountHint());

代码示例来源:origin: Refinitiv/Elektron-SDK

upaVector.totalCountHint(totalCountHint);

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.applyHasTotalCountHint();
vector.applySupportsSorting();
vector.totalCountHint(5);
((VectorImpl)vector).encodedEntries(txt);
vector.containerType(DataTypes.FIELD_LIST);

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.applyHasSummaryData();
vector.applyHasSetDefs();
vector.totalCountHint(5);
((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.applyHasSummaryData();
vector.applyHasSetDefs();
vector.totalCountHint(5);
((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.applyHasSummaryData();
vector.applyHasSetDefs();
vector.totalCountHint(5);
((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.applyHasSummaryData();
vector.applyHasSetDefs();
vector.totalCountHint(5);
((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);

代码示例来源:origin: Refinitiv/Elektron-SDK

assertEquals(true, vector.checkSupportsSorting());
assertEquals(DataTypes.FIELD_LIST, vector.containerType());
assertEquals(2, vector.totalCountHint());
assertEquals("000000001111111122222222", vector.encodedSetDefs().toString());
assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", vector.encodedSummaryData().toString());

代码示例来源:origin: Refinitiv/Elektron-SDK

vector.totalCountHint(3);
bufferSizeNeeded += 4;
assertEquals(3, vector.totalCountHint());

相关文章