com.amazonaws.services.kinesis.model.Record.setSequenceNumber()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(155)

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

Record.setSequenceNumber介绍

[英]The unique identifier of the record within its shard.
[中]记录碎片中记录的唯一标识符。

代码示例

代码示例来源:origin: aws/aws-sdk-java

/**
 * <p>
 * The unique identifier of the record within its shard.
 * </p>
 * 
 * @param sequenceNumber
 *        The unique identifier of the record within its shard.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Record withSequenceNumber(String sequenceNumber) {
  setSequenceNumber(sequenceNumber);
  return this;
}

代码示例来源:origin: aws/aws-sdk-java

if (context.testExpression("SequenceNumber", targetDepth)) {
  context.nextToken();
  record.setSequenceNumber(context.getUnmarshaller(String.class).unmarshall(context));

代码示例来源:origin: com.amazonaws/aws-java-sdk-kinesis

/**
 * <p>
 * The unique identifier of the record within its shard.
 * </p>
 * 
 * @param sequenceNumber
 *        The unique identifier of the record within its shard.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Record withSequenceNumber(String sequenceNumber) {
  setSequenceNumber(sequenceNumber);
  return this;
}

代码示例来源:origin: aws-amplify/aws-sdk-android

String name = reader.nextName();
if (name.equals("SequenceNumber")) {
  record.setSequenceNumber(StringJsonUnmarshaller.getInstance()
      .unmarshall(context));
} else if (name.equals("ApproximateArrivalTimestamp")) {

代码示例来源:origin: amazon-archives/kinesis-storm-spout

/**
 * Creates a copy of the record so we don't get interference from bolts that execute in the same JVM.
 * We invoke ByteBuffer.duplicate() so the ByteBuffer state is decoupled.
 * 
 * @param record Kinesis record
 * @return Copied record.
 */
private Record copyRecord(Record record) {
  Record duplicate = new Record();
  duplicate.setPartitionKey(record.getPartitionKey());
  duplicate.setSequenceNumber(record.getSequenceNumber());
  duplicate.setData(record.getData().duplicate());
  return duplicate;
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-kinesis

if (context.testExpression("SequenceNumber", targetDepth)) {
  context.nextToken();
  record.setSequenceNumber(context.getUnmarshaller(String.class).unmarshall(context));

相关文章