/** * <p> * The starting hash key of the hash key range. * </p> * * @param startingHashKey * The starting hash key of the hash key range. * @return Returns a reference to this object so that method calls can be chained together. */ public HashKeyRange withStartingHashKey(String startingHashKey) { setStartingHashKey(startingHashKey); return this; }
if (context.testExpression("StartingHashKey", targetDepth)) { context.nextToken(); hashKeyRange.setStartingHashKey(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The starting hash key of the hash key range. * </p> * * @param startingHashKey * The starting hash key of the hash key range. * @return Returns a reference to this object so that method calls can be chained together. */ public HashKeyRange withStartingHashKey(String startingHashKey) { setStartingHashKey(startingHashKey); 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; }
if (context.testExpression("StartingHashKey", targetDepth)) { context.nextToken(); hashKeyRange.setStartingHashKey(context.getUnmarshaller(String.class).unmarshall(context));