public Map < String , Long > update ( Statement stmt , List < Bin > bins , Qualifier ... qualifiers ) { if ( qualifiers != null && qualifiers . length == 1 && qualifiers [ 0 ] instanceof KeyQualifier ) { KeyQualifier keyQualifier = ( KeyQualifier ) qualifiers [ 0 ] ; Key key = keyQualifier . makeKey ( stmt . getNamespace ( ) , stmt . getSetName ( ) ) ; this . client . put ( this . updatePolicy , key , bins . toArray ( new Bin [ 0 ] ) ) ; Map < String , Long > result = new HashMap < String , Long > ( ) ; result . put ( "read" , 1L ) ; result . put ( "write" , 1L ) ; return result ; } else { KeyRecordIterator results = select ( stmt , true , null , qualifiers ) ; return update ( results , bins ) ; } }
The list of Bins will update each record that match the Qualifiers supplied .