[
http://jira.amdatu.org/jira/browse/AMDATUCASSANDRA-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11178#comment-11178
]
Ivo Ladage - van Doorn commented on AMDATUCASSANDRA-11:
-------------------------------------------------------
I suggest solution number 2;
- Publish the Hector API next to the CassandraPersistenceManager API so that a
developer can choose which one to use
The Amdatu PM should focus on adding methods that Hector doesn't provide, just
for ease of development. The Amdatu PM should make it easier to program against
Cassandra, and adds some features which are specific to Amdatu (like tenant
awareness). It shouldn't reinvent the wheel however, it doesn't make sense to
wrap the Hector API with Amdatu classes just passing the methods to Hector.
So I suggest to export the Hector API but still provide an Amdatu PM, which
just adds some handy utility methods.
> Extend/refactor the Persistence Manager API
> -------------------------------------------
>
> Key: AMDATUCASSANDRA-11
> URL: http://jira.amdatu.org/jira/browse/AMDATUCASSANDRA-11
> Project: Amdatu Cassandra
> Issue Type: Roadmap Issue
> Components: Persistence Manager
> Reporter: Ivo Ladage - van Doorn
> Fix For: 0.2.3
>
>
> The CassandraPersistenceManager API sits on top of the Hector API but
> provides a simplified interface. Sometimes this is handy, but for some use
> cases the Hector API provides features that are needed. The question is if it
> useful to wrap the Hector API in a new API, or that we should just expose the
> Hector API. I think there are 3 options:
> - Extend the CassandraPersistenceManager API with missing features (so that
> it becomes a Hector API look-a-like)
> - Publish the Hector API next to the CassandraPersistenceManager API so that
> a developer can choose which one to use
> - Remove the CassandraPersistenceManager API and publish the Hector API,
> which will become the only Cassandra API
> Features that the current CassandraPersistenceManager API offers on top of
> the Hector API:
> - multi-tenancy
> - PersistenceManager as a service
> - new functions like exists(String columnFamilyName, String rowKey) and
> getRowKeys(String columnFamilyName)
> - reduce/hide complexity of the Hector API (i.e. dealing with tombstone rows)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers