Skip to content

Migration Guide 4 to 5

DuyHai DOAN edited this page Sep 6, 2016 · 1 revision

If you are migrating from Achilles 4.x to Achilles 5.x, below are the changes and how to transition:

SELECT DSL API

  • where().xxx_Eq(...): replaced by where().xxx().Eq(...)
  • where().xxx_Gt(...): replaced by where().xxx().Gt(...) and similarly for all other inequality relations
  • you can now select sub-fields of UDTf with select().udt().allColumns() or select().udt().sub-column()

UPDATE DSL API

  • update().fromBaseTable().xxx_Set(...): replaced by update().fromBaseTable().xxx().Set(...)
  • update().fromBaseTable().list_AppendTo(...): replaced by update().fromBaseTable().list().AppendTo(...) and similarly for all other operations on list
  • update().fromBaseTable().set_Add(...): replaced by update().fromBaseTable().set().Add(...) and similarly for all other operations on set
  • update().fromBaseTable().map_PutTo(...): replaced by update().fromBaseTable().map().PutTo(...) and similarly for all other operations on map
  • where().xxx_Eq(...): replaced by where().xxx().Eq(...)
  • you can now use the IN clause for all clustering columns

DELETE DSL API

  • where().xxx_Eq(...): replaced by where().xxx().Eq(...) and similarly for all other inequality relations
  • you can now use the IN clause for all clustering columns

Query DSL

  • manager.query() has been renamed to manager.raw()

Home

Clone this wiki locally