/** * <p> * The ending hash key of the hash key range. * </p> * * @param endingHashKey * The ending hash key of the hash key range. * @return Returns a reference to this object so that method calls can be chained together. */ public HashKeyRange withEndingHashKey(String endingHashKey) { setEndingHashKey(endingHashKey); return this; }
hashKeyRange.setEndingHashKey(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The ending hash key of the hash key range. * </p> * * @param endingHashKey * The ending hash key of the hash key range. * @return Returns a reference to this object so that method calls can be chained together. */ public HashKeyRange withEndingHashKey(String endingHashKey) { setEndingHashKey(endingHashKey); return this; }
public HashKeyRange unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } HashKeyRange hashKeyRange = new HashKeyRange(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("StartingHashKey")) { hashKeyRange.setStartingHashKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("EndingHashKey")) { hashKeyRange.setEndingHashKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return hashKeyRange; }
/** * The underlying DynamoDB Streams model does not expose hash key range. To * ensure compatibility with the Kinesis Client Library, this method * returns dummy values. * * @return The range of possible hash key values for the shard. */ @Override public HashKeyRange getHashKeyRange() { HashKeyRange hashKeyRange = new HashKeyRange(); hashKeyRange.setStartingHashKey(java.math.BigInteger.ZERO.toString()); hashKeyRange.setEndingHashKey(java.math.BigInteger.ONE.toString()); return hashKeyRange; }
/** * The underlying DynamoDB Streams model does not expose hash key range. To * ensure compatibility with the Kinesis Client Library, this method * returns dummy values. * * @return The range of possible hash key values for the shard. */ @Override public HashKeyRange getHashKeyRange() { HashKeyRange hashKeyRange = new HashKeyRange(); hashKeyRange.setStartingHashKey(java.math.BigInteger.ZERO.toString()); hashKeyRange.setEndingHashKey(java.math.BigInteger.ONE.toString()); return hashKeyRange; }
hashKeyRange.setEndingHashKey(context.getUnmarshaller(String.class).unmarshall(context));