NOT_NULL query condition on globalSecondaryIndex in dynamodb query -


is possible add constraint dynamodb query expression states gsi should not null?

can provide examples.

is possible construct query 1 below?

new dynamodbqueryexpression<xxx>()             .withhashkeyvalues(yyy).withkeyconditionexpression(gsi != null); 

note: please let me know if possible in during query , not during filter time?

the dynamodb string attribute can't have null or empty string.

when try insert null, api should throw below exception:-

java.lang.illegalargumentexception: input value must not null 

when try insert empty string, api should throw below exception:-

com.amazonaws.amazonserviceexception: 1 or more parameter values invalid: attributevalue may not contain empty string 

if want add additional filters on attributes (i.e. attributes other hash or range key), can use below syntax (i.e. withfilterexpression).

not equals operator "<>"

map<string, attributevalue> eav = new hashmap<string, attributevalue>(); eav.put(":val1", new attributevalue().withs("some value"));  dynamodbqueryexpression<xxx> queryexpression = new dynamodbqueryexpression<xxx>();     queryexpression.withhashkeyvalues(hashkeyvalues);            queryexpression.withfilterexpression("doctype <> :val1").withexpressionattributevalues(eav); 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -