Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
28975d6
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
prowave Nov 12, 2013
aaad2b7
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 12, 2013
d912bd9
created Cassandra-specific Spring DataAccessException for each Datast…
matthewadams Nov 12, 2013
4ec8dcc
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 12, 2013
1b0f696
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 12, 2013
325d342
aligned C* exceptions more with Spring exceptions than C* ones
matthewadams Nov 12, 2013
3207720
DATACASS-34
alexshvid Nov 13, 2013
3fb0193
DATACASS-33 created CompositeRowId for composite primary keys
alexshvid Nov 13, 2013
a254430
code cleanup
alexshvid Nov 13, 2013
ec08d0e
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
c4ed251
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
5f21f17
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
baf00ca
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
5c072c3
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
47cb5a8
added tests for nontrivial behavior
matthewadams Nov 13, 2013
6f4c301
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
78b19bf
IN PROGRESS - issue DATACASS-32: Implement the TemplateAPI for CQL
prowave Nov 13, 2013
8671865
Merge branch 'DATACASS-24'
matthewadams Nov 13, 2013
31747ae
wip: Defined all CassnadraOperations.
prowave Nov 13, 2013
d080837
wip: All tests now pass with change in compression enum.
prowave Nov 13, 2013
7deb359
wip: Completed implementation of inserts and deletes.
prowave Nov 13, 2013
8c165db
wip: Completed delete aync first pass. Still have to add QueryOptions
prowave Nov 13, 2013
aeb5480
wip: Fixed Class Copyright blocks.
prowave Nov 14, 2013
8ce75a6
wip: Removing email address from comments.
prowave Nov 14, 2013
f169508
wip: Added all overrides in CassandraOperations
prowave Nov 14, 2013
604716e
Merge branch 'master' of
prowave Nov 14, 2013
6f26bbf
File rename part 1
Nov 14, 2013
8618878
File rename part 2
prowave Nov 14, 2013
ce7ed90
Merge branch 'master' of https://github.com/shvid/spring-data-cassandra
prowave Nov 14, 2013
b9f3be9
Merge branch 'DATACASS-32'
prowave Nov 14, 2013
c4a1da8
formatted sources & added formatting file from spring-data-jpa
matthewadams Nov 14, 2013
7da3648
CQLBuilder -> CqlBuilder
matthewadams Nov 14, 2013
17b0b4d
wip: Finished Implementation of update methods.
prowave Nov 14, 2013
4925f6b
wip: Unit Tests - renamed package for Cassandra Table POJOs.
prowave Nov 14, 2013
88d2d30
wip: Unit tests with CQLLoader working as @Rule
prowave Nov 14, 2013
4ffcb4a
wip: Update Operations test now passing.
prowave Nov 14, 2013
19feecb
wip: admin ops, CreateTable
matthewadams Nov 15, 2013
f2f24b3
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
matthewadams Nov 15, 2013
7c3f789
wip: Added new methods to CassandraOperations and implemented them in
prowave Nov 15, 2013
de84d91
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
prowave Nov 15, 2013
c217088
wip: Fix XMLNamespaceTest
prowave Nov 15, 2013
0a7ea34
wip: Rename CassandraOperationsTableTest to CassandraAdminTest
prowave Nov 15, 2013
36e5eab
wip: completed all insert unit tests.
prowave Nov 15, 2013
f8e71a8
wip: fixed and simplified the toBatchXXX() methods.
prowave Nov 15, 2013
a8d7439
dialing in builder
matthewadams Nov 15, 2013
b1c855c
wip: Completed single update and delete tests.
prowave Nov 15, 2013
488ae89
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
matthewadams Nov 15, 2013
22b7e17
String => DataType, CreateTableBuilder#partitionColumn(..) => #partit…
matthewadams Nov 15, 2013
22dd3f6
escape the potencial NPE for beanClassLoader in Cassandra(Admin)Template
alexshvid Nov 17, 2013
f12d8c7
DATACASS-11 moved from CqlUtils insert and update to the
alexshvid Nov 17, 2013
eb48821
DATACASS-11 added Delete.Where to the entityWriter in CassandraConverter
alexshvid Nov 17, 2013
419086b
wip: Completed updateBatch and deleteBatch tests.
prowave Nov 17, 2013
b98f951
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
prowave Nov 17, 2013
41ad0ea
Merge branch 'DATACASS-11' into DATACASS-32
prowave Nov 17, 2013
a0f0768
Merge branch 'DATACASS-11' of
alexshvid Nov 17, 2013
62668c1
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
prowave Nov 17, 2013
6441ef0
Added basic select methods to TemplateAPI
prowave Nov 18, 2013
6c3b2c2
added TableOption enums, MapBuilder
matthewadams Nov 18, 2013
a5e86cf
merging
matthewadams Nov 18, 2013
f95b653
added option tests => fixed option bugs
matthewadams Nov 19, 2013
67143f9
DATACASS-32: WIP: Split the Template out into Cassandra operations and
prowave Nov 19, 2013
cab833b
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
prowave Nov 19, 2013
a3615de
DATACASS-32: WIP: Fixed XML Config issue in unit tests.
prowave Nov 19, 2013
351d128
DATACASS-32 - Pulled in existing work from Matthew Adams on the
prowave Nov 19, 2013
1000aec
now have create/alter/drop table builders
matthewadams Nov 19, 2013
7eea4f3
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
matthewadams Nov 19, 2013
540c9e2
relocated things appropriately
matthewadams Nov 19, 2013
7945267
initial readme
matthewadams Nov 19, 2013
22215a6
DATACASS-32 - WIP - Completed Build out of CassandraOperations and
prowave Nov 20, 2013
2f75ac2
DATACASS-32 - WIP - Clean up test code formatting.
prowave Nov 20, 2013
799f323
Merge branch 'DATACASS-32' of
prowave Nov 20, 2013
2167012
separated buildes from specifications
matthewadams Nov 20, 2013
d438a5e
more CQL generation refactoring
matthewadams Nov 20, 2013
ba294fe
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
matthewadams Nov 20, 2013
304474f
changes from code review
matthewadams Nov 20, 2013
a9d091b
moved all tests into *.test.unit.* packages; next is to pull out inte…
matthewadams Nov 20, 2013
a7e71ae
separated integration tests from unit tests
matthewadams Nov 20, 2013
276af85
removed duplicate tests
matthewadams Nov 21, 2013
8320e7a
DATACASS-32 - Fixed testSingleton after refactoring by Matt.
prowave Nov 21, 2013
e205185
DATACASS-32 - WIP - Renamed PreparedStatementBinder variable name.
prowave Nov 21, 2013
d5964a3
DATACASS-32 : WIP : Javadoc'd the CassandraOperatations and
prowave Nov 22, 2013
faa8b52
DATACASS-32 : WIP : Completed PreparedStatement Operations.
prowave Nov 22, 2013
b825724
testing coming along
matthewadams Nov 23, 2013
55c488c
Merge branch 'DATACASS-32' of https://github.com/shvid/spring-data-ca…
matthewadams Nov 23, 2013
809f385
DATACASS-39 : WIP : New Class Layout.
prowave Nov 23, 2013
478afb1
Created BoundStatementFactory for high performance write ingestion.
prowave Nov 23, 2013
45ea8ad
updated readme
matthewadams Nov 25, 2013
c6f56d0
DATACASS-39 : WIP : Temporarily introducing failing test for CI POC.
prowave Nov 25, 2013
2f62965
DATACASS-39 : WIP : Removing failing test for CI POC.
prowave Nov 25, 2013
62a1223
added another test & streamlined unit+integration testing
matthewadams Nov 25, 2013
096be96
Merge branch 'DATACASS-39' of https://github.com/shvid/spring-data-ca…
prowave Nov 25, 2013
58a0323
DATACASS-39 : WIP : Removed failing test.
prowave Nov 25, 2013
161c703
remove @After method & clear
matthewadams Nov 25, 2013
e78b2d6
DATACASS-39 : WIP : Cleaning up javadoc build task to work.
prowave Nov 25, 2013
f7e7cee
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
prowave Nov 25, 2013
2b677fe
updated with approval & feedback
matthewadams Nov 25, 2013
efb1675
CassandraAccessor cleanup, removed synchronized modifier
alexshvid Nov 25, 2013
791f2a5
DATACASS-41
matthewadams Nov 25, 2013
93e293f
spring-cassandra compiling
matthewadams Nov 26, 2013
a257098
spring-cassandra now compiling
matthewadams Nov 26, 2013
5e49ec4
PreparedStatementCreatorImpl null return fix
alexshvid Nov 26, 2013
72069f6
ColumnSpecification constant name fix
alexshvid Nov 26, 2013
612fc0c
Merge branch 'master' of
alexshvid Nov 26, 2013
bc8588b
CassandraExceptionTranslator wrong order fix
alexshvid Nov 26, 2013
e76af00
DONE - issue DATACASS-39: Better PreparedStatement Support
prowave Nov 26, 2013
3c209bc
Merge branch 'DATACASS-39'
prowave Nov 26, 2013
8096f63
added missed poms due to .gitignore; spring-cassandra now testing ok
matthewadams Nov 26, 2013
da1e4cc
Changed project version number. Fixed javadoc build target.
prowave Nov 26, 2013
a56630d
looking like modules are now separated & mavenized
matthewadams Nov 26, 2013
d49c7ce
merged latest master into mavenized source tree
matthewadams Nov 26, 2013
7aa8307
misc cleanup after merge
matthewadams Nov 26, 2013
eab6d32
DATACASS-35 : import static for Assert.
prowave Nov 26, 2013
7962f3d
updated readme
matthewadams Nov 26, 2013
a78100f
cassandra repository integration test
alexshvid Nov 26, 2013
9986cbd
changed links to spring-data-build.git and spring-data-commons.git pr…
alexshvid Nov 26, 2013
2e4f58a
DATACASS-35: Unit Tests for CassandraOperations : Adding newly written
prowave Nov 26, 2013
a51e19b
change Error to IllegalArgumentException in AlterTableCqlGenerator
alexshvid Nov 26, 2013
4e9023d
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
alexshvid Nov 26, 2013
4ac3198
log4j configuration for embedded cassandra unit
alexshvid Nov 26, 2013
67643b5
merge master to DATACASS-34
alexshvid Nov 26, 2013
18ec726
DATACASS-35: Unit Tests for CassandraOperations
prowave Nov 26, 2013
fc7a370
Update README.adoc
pgraff Nov 27, 2013
7dbf5a1
added VHA as contributor
matthewadams Nov 27, 2013
3522127
created SimpleCassandraRepository
alexshvid Nov 27, 2013
ee9d238
DATACASS-35: Unit Tests for CassandraOperations : Fixed test logging
prowave Nov 27, 2013
f8cd35f
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
prowave Nov 27, 2013
c0a46d7
Merge branch 'master' into DATACASS-35
prowave Nov 27, 2013
41dddd3
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
alexshvid Nov 27, 2013
1c3b67d
add truncate function to CassandraTemplate
alexshvid Nov 27, 2013
7e2d0a2
wrong logger in CassandraAccessor
alexshvid Nov 27, 2013
08f8b48
change logback settings from debug to info
alexshvid Nov 27, 2013
14419a5
same changes in legacy log4j properties
alexshvid Nov 27, 2013
c1182f5
added logger.info to doExecute method in CassandraTemplate
alexshvid Nov 27, 2013
f8f1d2b
SimpleCassandraRepository refactoring
alexshvid Nov 27, 2013
dfcdf2a
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
alexshvid Nov 27, 2013
d4150e7
CassandraRepository config
alexshvid Nov 27, 2013
8982444
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
prowave Nov 27, 2013
775c850
DATACASS-35: Unit Tests for CassandraOperations - Completed.
prowave Nov 27, 2013
37d7fce
SimpleCassandraRepository integration tests for User
alexshvid Nov 27, 2013
afbe1b8
fixed java.lang.OutOfMemoryError: unable to create new native thread
alexshvid Nov 27, 2013
236fdb0
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
alexshvid Nov 27, 2013
5319f50
Merge branch 'DATACASS-34' of https://github.com/shvid/spring-data-ca…
alexshvid Nov 27, 2013
3223ea1
DACASS-48 : WIP : Refactored QueryOptions and supporting classes to
prowave Dec 2, 2013
4c9ea72
DATACASS-48 : WIP : Add ConsistencyLevel and RetryPolicy to
prowave Dec 2, 2013
767cfbb
DATACASS-48 : CLOSED: Added javadoc for new overload methods to specify
prowave Dec 2, 2013
586cdc4
compound keys renaming
alexshvid Dec 3, 2013
558c0cc
Merge branch 'master' into DATACASS-34
alexshvid Dec 3, 2013
2a876be
rename @RowId to @PrimaryKey same as in CQL3
alexshvid Dec 3, 2013
90bf82c
findByPartitionKey added to SimpleCassandraRepository
alexshvid Dec 3, 2013
5bbfafb
composite primary key support
alexshvid Dec 3, 2013
850b8cb
DATACASS-48 : Changed default empty Map Creation.
prowave Dec 3, 2013
c614777
Merge branch 'master' of https://github.com/shvid/spring-data-cassand…
prowave Dec 3, 2013
c59cf53
create table generator code review
alexshvid Dec 3, 2013
36b80d6
primary key contains { partitioned keys, clustered keys } refactoring
alexshvid Dec 3, 2013
3cdb1ce
moved create table from CqlUtils to cql generator
alexshvid Dec 3, 2013
fc5011a
Merge branch 'master' of github.com:SciSpike/spring-data-cassandra
matthewadams Dec 6, 2013
7fc908a
Delete readme.md
matthewadams Dec 6, 2013
3b03dc0
fixed readme
matthewadams Dec 6, 2013
1851503
Merge branch 'master' of github.com:SciSpike/spring-data-cassandra
matthewadams Dec 6, 2013
174529e
Code review cleanup. Commit test for new repo.
prowave Dec 6, 2013
b2026e2
wip
matthewadams Dec 9, 2013
79ab905
limiting native_transport_max_threads to 64 due to Mac limit
matthewadams Dec 9, 2013
eb67dbf
Merge branch 'master' of github.com:SciSpike/spring-data-cassandra
matthewadams Dec 9, 2013
5b7b1de
limiting native_transport_max_threads to 64 due to Mac limit
matthewadams Dec 9, 2013
5e65f80
DATACASS-32 : WIP : Removed optionsByName for Query Options override.
prowave Dec 9, 2013
f7cca7b
wip: moved base c* config to spring-cassandra
matthewadams Dec 9, 2013
0bbc3c2
DATACASS-32 : Completed : Refactoring completed after code review.
prowave Dec 9, 2013
e95fac1
wip: beginning to move appropriate config to spring-cassandra
matthewadams Dec 9, 2013
6628b9d
Merge branch 'master' of https://github.com/SciSpike/spring-data-cass…
prowave Dec 9, 2013
4bba62b
wip
matthewadams Dec 9, 2013
b9a4293
Merge branch 'master' into DATACASS-14
matthewadams Dec 9, 2013
1c52b81
config class working w/minimal surface test
matthewadams Dec 9, 2013
758bd13
DATACASS-50 : Completed : Removed unneeded log config and added SLF4J
prowave Dec 9, 2013
1b80103
wip: java config looking good
matthewadams Dec 9, 2013
a061a1e
better fix for too many thread C* errors: fork tests
matthewadams Dec 9, 2013
2e76ad2
Merge branch 'master' into DATACASS-14
matthewadams Dec 9, 2013
3de8cfa
wip: changed after cassandra.yaml -> spring-cassandra.yaml
matthewadams Dec 9, 2013
d87966a
better fix for too many threads C* error: fork tests
matthewadams Dec 9, 2013
fb49d8d
Merge branch 'master' of github.com:SciSpike/spring-data-cassandra in…
matthewadams Dec 10, 2013
c98cc3d
DATACASS-52 : WIP : Commented out spring-data-cassandra modules, and
prowave Dec 10, 2013
0da0c24
DATACASS-52 : WIP : First round of README.md inforation for first pull.
prowave Dec 10, 2013
4a8450d
DATACASS-52 : WIP : First round of README.md information for first pull.
prowave Dec 10, 2013
668b8a0
Signed-off-by: prowave <dwebb@prowaveconsulting.com>
prowave Dec 10, 2013
890d60b
DATACASS-52 : WIP : Added Repository.
prowave Dec 10, 2013
fa9637f
spring-cassandra now supporting xml config
matthewadams Dec 10, 2013
807e085
switched from *Template to *Operations in C*TemplateFactoryBean
matthewadams Dec 10, 2013
df77860
Updated readme
matthewadams Dec 10, 2013
0825263
wip: commented some tests in sdc* after xml schema changes
matthewadams Dec 10, 2013
a9d3324
removed unused xml <keyspace>-related code
matthewadams Dec 10, 2013
fc220cb
Merge branch 'DATACASS-14' into DATACASS-52
matthewadams Dec 10, 2013
a7478db
wip
matthewadams Dec 11, 2013
d53b15e
wip
matthewadams Dec 11, 2013
e741902
wip
matthewadams Dec 11, 2013
195b220
moved factorybean classes from config.xml to config package
matthewadams Dec 12, 2013
b3358bc
Merge branch 'master' into DATACASS-52
matthewadams Dec 12, 2013
4de3f5f
moved Keyspace class from s-c to s-d-c in prep for complete removal
matthewadams Dec 12, 2013
dd497bf
Merge branch 'master' into DATACASS-52
matthewadams Dec 12, 2013
a051a88
renamed partition() -> partitioned(), primary() -> clustered() as app…
matthewadams Dec 12, 2013
57bc3fe
updated/added javadocs
matthewadams Dec 12, 2013
1709adc
merged from master
matthewadams Dec 12, 2013
dab4549
Merge branch 'master' into DATACASS-52
matthewadams Dec 12, 2013
24602af
DATACASS-47: Completed removal of class, refactoring, and unit test
prowave Dec 12, 2013
889b610
Merge branch 'master' of local repository into DATACASS-52
prowave Dec 12, 2013
e2aaee5
IN PROGRESS - issue DATACASS-47: Remove class SpringDataKeyspace
prowave Dec 12, 2013
9bb278d
Merge branch 'DATACASS-52' of https://github.com/SciSpike/spring-data…
prowave Dec 12, 2013
12a8638
remove non-javadoc & added missing @Override annos
matthewadams Dec 13, 2013
cb8bd33
merged from master
matthewadams Dec 13, 2013
8d82b56
updated java config
matthewadams Dec 13, 2013
2b060ac
DATACASS-66 - closed
matthewadams Dec 13, 2013
baace54
removed Alex
matthewadams Dec 13, 2013
3bf92b4
removed Alex
matthewadams Dec 13, 2013
b1edc03
Merged DATACASS-62
prowave Dec 13, 2013
7dcfc4b
DATACASS-64 : DONE : Removed old QueryOptions Map.
prowave Dec 13, 2013
09db9f5
Merge branch 'master' of local repository into DATACASS-52
prowave Dec 13, 2013
b26763d
Merge branch 'DATACASS-52' of https://github.com/SciSpike/spring-data…
prowave Dec 13, 2013
b31a26a
Moved static methods out of TableOperations.java and fixed junit
john-mcpeek Dec 14, 2013
d85b117
Added Keyspace specification classes.
john-mcpeek Dec 14, 2013
369cf44
Added the CqlGenerators for Keyspace.
john-mcpeek Dec 14, 2013
3f2c0a3
Added CqlGenerators for Keyspace.
john-mcpeek Dec 14, 2013
d5a52e8
Completed more of the CQL generators.
john-mcpeek Dec 16, 2013
41e24d6
Added names to companies.
prowave Dec 17, 2013
2d515ff
Merge branch 'master' of local repository into DATACASS-52
prowave Dec 17, 2013
9716d64
DATACASS-59: WIP : Commiting changes to TableOption specification for
prowave Dec 17, 2013
e143376
Fixed KeyspaceCqlGeneratorTest.
john-mcpeek Dec 17, 2013
79d3fe3
Added Keyspace tests.
john-mcpeek Dec 17, 2013
2fca100
Added Alter and Drop tests.
john-mcpeek Dec 17, 2013
8e2a03a
Fixed failing Drop test.
john-mcpeek Dec 17, 2013
c510bf2
DATACASS-59: Completed unit and integration tests for CREATE TABLE using
prowave Dec 17, 2013
f7f9b2b
IN PROGRESS - Split out full options integration test.
prowave Dec 17, 2013
4c54660
DATACASS-68 : Move IndexOperations static methods to Specification ob…
matthewadams Dec 23, 2013
606a073
Merge branch 'master' into DATACASS-52
matthewadams Dec 23, 2013
99b984f
Added integration test for Create Keyspace.
john-mcpeek Dec 24, 2013
1aa9213
Fixed name so it says mykeyspace.
john-mcpeek Dec 24, 2013
7612853
Added a more complete test.
john-mcpeek Dec 24, 2013
a56a893
Merge branch 'master' of https://github.com/SciSpike/spring-data-cass…
john-mcpeek Dec 24, 2013
c7c3b68
DATACASS-59: Compelted Integration Tests.
prowave Dec 26, 2013
e59fb07
Merge branch 'master' into DATACASS-52
prowave Dec 26, 2013
dc66575
Merge branch 'DATACASS-52' of https://github.com/SciSpike/spring-data…
prowave Dec 26, 2013
25a78b0
Added NetworkTopology integration test.
john-mcpeek Dec 30, 2013
c960902
Merge branch 'DATACASS-53'
john-mcpeek Dec 30, 2013
f74cfb9
Merge branch 'master' of https://github.com/SciSpike/spring-data-cass…
john-mcpeek Dec 30, 2013
4be031f
fixed copy/paste error: DropKeyspaceSpecification#dropTable() -> #dr…
matthewadams Jan 3, 2014
05466b9
fixed copy/paste error in comment; fixed generics issue in 'with(..)'…
matthewadams Jan 6, 2014
449b57d
DATACASS-55 : WIP : now parsing XML ok for CREATE & CREATE-DROP
matthewadams Jan 6, 2014
0ee3697
DATACASS-55: WIP: now have startup/shutdown CQL; durable-writes defau…
matthewadams Jan 6, 2014
1ae28e6
DATACASS-55: WIP: all working ok
matthewadams Jan 7, 2014
1bc09e0
DATACASS-55: removed unnecessary AbstractIntegrationTestConfiguration…
matthewadams Jan 7, 2014
5cf63fc
DATACASS-55: removed CassandraTemplate @Bean from AbstractCassandraTe…
matthewadams Jan 7, 2014
785389f
Merge branch 'master' into DATACASS-52
matthewadams Jan 7, 2014
3d75f92
updated README
matthewadams Jan 7, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
target
bin
build
.gradle
.springBeans
*.iml
*.ipr
*.iws
*.log
.classpath
.project
.settings
.cassandra
54 changes: 0 additions & 54 deletions README.adoc

This file was deleted.

193 changes: 193 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
# Spring Data Cassandra Project Info

## Release Preview

The goal of this release preview is to publish the pieces of spring-data-cassandra as they become available
so that user's of the module can start to familiarize themselves with the components, and ultimately to provide
the development team feedback. We hope this iterative approach produces the most usable and developer friendly
``spring-data-cassandra`` repository.

### What's included (Q1 - 2014)

There are two modules included in the ``spring-data-cassandra`` repository: ``spring-cassandra`` and ``spring-data-cassandra``.

#### Module ``spring-cassandra``

This is the low-level core template framework, like the ones you are used to using on all your Spring projects. Our
``CassandraTemplate`` provides everything you need for working with Cassandra using Spring's familiar template pattern.

This includes persistence exception translation, Spring JavaConfig and XML configuration support. Define your Spring beans to setup your
Cassandra ``Cluster`` object, then create your ``Session`` and you are ready to interact with Cassandra using the ``CassandraTemplate``.

The module also offers table operation builders for ``CREATE TABLE``, ``ALTER TABLE``, and ``DROP TABLE`` operations, as well as XML namespace support for automatic keyspace creations and optional drops.

#### Module ``spring-data-cassandra``

The ``spring-data-cassandra`` module depends on the ``spring-cassandra`` module and adds the familiar Spring Data features like repositories and lightweight POJO persistence.

_Note: The code in the ``spring-data-cassandra`` module is a work in progress and is not yet functional._

We are actively working on its completion, but wanted to make the lower level Cassandra template functionality available to the Spring and Cassandra communities.

#### Best practices

We have worked closely with the DataStax Driver Engineering team to ensure that our implementation around their native
CQL Driver takes advantage of all that it has to offer. If you need access to more than one keyspace in your application,
create more than one ``CassandraTemplate`` (one per session, one session per keyspace), then use the appropriate template instance where needed.

Here are some considerations when designing your application for use with ``spring-cassandra``.

* When creating a template, wire in a single ``Session`` per keyspace. _Remember, ``Session`` is threadsafe, so only use one session per keyspace!_
* Cassandra's ``Session`` object is thread-safe, so you only need one per application & keyspace.
* Do not issue ``USE <keyspace>`` commands on your session; instead, _configure_ the keyspace name you intend to use.
* The DataStax Java Driver handles all failover and retry logic for you. Become familiar with the [Driver Documentation](http://www.datastax.com/documentation/developer/java-driver/1.0/webhelp/index.html), which will help you configure your ``Cluster``.
* If you are using a Cassandra ``Cluster`` spanning multiple data centers, please be insure to include hosts from all data centers in your contact points.

#### High Performance Ingestion

We have included a variety of overloaded ``ingest()`` methods in the template for high performance batch writes.

### What's Next (early Q1 - 2014): Spring _Data_ Cassandra

The next round of work to do is to complete module ``spring-data-cassandra``, while taking feedback from the community's use of module ``spring-cassandra``.

#### Cassandra Admin Template

This is another Spring template class to help you with all of your keyspace and table administration tasks.

#### Cassandra Data Template

This template extends ``CassandraTemplate`` to provide even more interaction with Cassandra using annotated POJOs.
The Spring Data Cassandra Repository implementation is a client of ``CassandraDataTemplate``. This _data_ template gives the developer the capability of working with annotated POJOs and the template pattern without the requirement of the Spring Data ``Repository`` interface.

#### Cassandra Repository

The implementation of the standard Spring Data Repository interface for Cassandra.

#### Official Reference Guide

Once we have all the inner workings of the Repository interface completed, we will publish a full Reference Guide on using all of the features in spring-data-cassandra.

## Examples

### JavaConfig

Here is a very basic example to get your project connected to Cassandra 1.2 running on your local machine.

@Configuration
public class TestConfig extends AbstractCassandraConfiguration {

public static final String KEYSPACE = "test";

@Override
protected String getKeyspaceName() {
return KEYSPACE;
}

@Bean
public CassandraOperations cassandraTemplate() {
return new CassandraTemplate(session().getObject());
}
}

### XML Configuration

<cassandra-cluster />
<cassandra-session keyspace-name="test" />
<cassandra-template />

### Using CassnadraTemplate

public class CassandraOperationsTest {

@Autowired
private CassandraOperations template;

public Integer getCount() throws DataAccessException {

String cql = "select count(*) from table_name";

Integer count = template.queryForObject(cql, Integer.class);

log.info("Row Count is -> " + count);

return count;
}
}

## Current Status

This community-led [Spring Data](http://projects.spring.io/spring-data)
subproject is well underway.

A first milestone (M1) is expected sometime in early 1Q14 built on the
following artifacts (or more recent versions thereof):

* Spring Data Commons 1.7.x
* Cassandra 1.2
* Datastax Java Driver 1.x
* JDK 1.6+

The GA release is expected as part of the as-yet unnamed fourth Spring
Data Release Train "D", following Spring Data Release Train
[Codd](https://github.com/spring-projects/spring-data-commons/wiki/Release-Train-Codd).


## Cassandra 2.x

We are anticipating support for Cassandra 2.x and Datastax Java Driver
2.x in a parallel branch after the 1.x-based support has been
released.


## Source Repository & Issue Tracking

Source for this module is hosted on GitHub in [Spring Projects](https://github.com/spring-projects).
The Spring Data Cassandra JIRA can be found [here](https://jira.springsource.org/browse/DATACASS).

## Reporting Problems

If you encounter a problem using this module, please report the issue to us using [JIRA](https://jira.springsource.org/browse/DATACASS). Please provide as much information as you can, including:

* Cassandra version
* Community or DataStax distribution of Cassandra
* JDK Version
* Output of ``show schema`` where applicable
* Any stacktraces showing the location of the problem
* Steps to reproduce
* Any other relevant information that you would like to see if you were diagnosing the problem.

Please do not post anything to Jira or the mailing list on how to use Cassandra. That is beyond the scope
of this module and there are a variety of resources available targeting that specific subject.

We recommend reading the following:

* [PlanetCassandra.org](http://planetcassandra.org/)
* [Getting Started](http://wiki.apache.org/cassandra/GettingStarted)
* [Driver Documentation](http://www.datastax.com/documentation/developer/java-driver/1.0/webhelp/index.html)


## Contact

For more information, feel free to contact the individuals listed
below:

* David Webb: dwebb _at_ prowaveconsulting _dot_ com
* Matthew Adams: matthew _dot_ adams _at_ scispike _dot_ com

Also, developer discussions are being hosted via Google Groups at https://groups.google.com/forum/#!forum/spring-data-cassandra.

## Sponsoring Companies

Spring Data Cassandra is being led and supported by the following
companies and individuals:

* [Prowave Consulting](http://www.prowaveconsulting.com) - David Webb
* [SciSpike](http://www.scispike.com) - Matthew Adams
* [VHA](http://www.vha.com)

The following companies and individuals are also generously providing
support:

* [DataStax](http://www.datastax.com)
* [Spring](http://www.spring.io) @ [Pivotal](http://www.gopivotal.com)
Loading