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

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

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

Vector.encodedSummaryData介绍

[英]Encoded summary data. If populated, summary data contains information that applies to every entry encoded in the Vector (e.g. currency type). The container type of summary data must match the containerType specified on the Vector. If encodedSummaryData is populated while encoding, contents are used as pre-encoded summary data.
[中]编码的摘要数据。如果填充,汇总数据包含适用于向量中编码的每个条目的信息(例如货币类型)。摘要数据的容器类型必须与向量上指定的容器类型匹配。如果编码时填充了encodedSummaryData,则内容将用作预编码的摘要数据。

代码示例

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

@Override
public Vector summaryData(ComplexType summaryData)
{
  if (summaryData == null)
    throw ommIUExcept().message("Passed in summaryData is null");
  
  _summaryDataType = summaryData.dataType();
  _summaryDataTypeSet = true;
  _rsslVector.applyHasSummaryData();
  Utilities.copy(((DataImpl) summaryData).encodedData(), _rsslVector.encodedSummaryData());
  return this;
}

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

xmlString.append(decodeSummaryData(iterCopy, vec.containerType(), vec.encodedSummaryData(),
                  iterCopy.majorVersion(), iterCopy.minorVersion(), dictionary, setDb));

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

int dType = dataType(rsslContainerType, _rsslMajVer, _rsslMinVer, _rsslVector.encodedSummaryData());
_summaryDecoded = dataInstance(_summaryDecoded, dType);
_summaryDecoded.decode(_rsslVector.encodedSummaryData(), _rsslMajVer, _rsslMinVer, _rsslDictionary, _rsslLocalSetDefDb);

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

iter.setBufferAndRWFVersion(buf, Codec.majorVersion(), Codec.minorVersion());
vector.encodedSetDefs(txt);
vector.encodedSummaryData(txt);
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);
vector.encodedSummaryData().clear();
vector.applyHasSummaryData();
assertTrue(vector.encodeInit(iter, 0, 0) == CodecReturnCodes.SUCCESS);

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

((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);
vector.encodedSummaryData(txt);
vector.containerType(DataTypes.FIELD_LIST);

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

((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);
vector.encodedSummaryData(txt);
vector.containerType(DataTypes.FIELD_LIST);                
vectorEntry.applyHasPermData();

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

((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);
vector.encodedSummaryData(txt);
vector.containerType(DataTypes.FIELD_LIST);                
vectorEntry.applyHasPermData();

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

assertEquals(2, vector.totalCountHint());
assertEquals("000000001111111122222222", vector.encodedSetDefs().toString());
assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", vector.encodedSummaryData().toString());

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

((VectorImpl)vector).encodedEntries(txt);
vector.encodedSetDefs(txt);
vector.encodedSummaryData(txt);
vector.containerType(DataTypes.FIELD_LIST);                
vectorEntry.applyHasPermData();

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

preEncodeIter.setBufferAndRWFVersion(preEncodeBuffer, Codec.majorVersion(), Codec.minorVersion());
  assertEquals(CodecReturnCodes.SUCCESS, containerOverrunTest_encodeFieldList(preEncodeIter, sizeIndex, (setDefsEncodeMethod != ContainerOverrunTest_EncodeMethod.NONE) ? setDb : null));
  vector.encodedSummaryData(preEncodeBuffer);
  break;
  assertEquals(CodecReturnCodes.SUCCESS, containerOverrunTest_writeOpaqueByteBuffer(payloadEncodedSize, expectedOpaqueData, preEncSummaryDataByteBuf));
  preEncSummaryDataByteBuf.flip();
  vector.encodedSummaryData().data(preEncSummaryDataByteBuf);
  break;
default: fail("No testing implemented for this containerType"); break;
case DataTypes.OPAQUE: containerOverrunTest_decodeOpaque(vector.encodedSummaryData(), expectedOpaqueData, payloadEncodedSize); break;
default: fail("No testing implemented for this containerType"); break;

相关文章