-
Notifications
You must be signed in to change notification settings - Fork 233
Embeddables support in Kudu
Devender Yadav edited this page Mar 8, 2017
·
4 revisions
Support for Embeddable objects has been added to Kundera-Kudu in 3.8 release. Embeddable columns are stored parallel to columns in primary table.
@Entity
@Table(name = "PERSON_EMBED_KUDU", schema = "kudutest@kudu")
public class EmbeddablePerson
{
@Id
private String personId;
private String personName;
@Embedded
private Address address;
}
@Embeddable
public class Address
{
private String street;
private String city;
private String country;
}
The above embeddable Address
is stored in Table: PERSON_EMBED_KUDU
as follows:
Columns:
personId : String (Primary Key = true)
personName: String
street: String
city: String
country: String
Check test-case for more details.
Embeddable objects can also be used as a primary key to define composite primary key in Kudu.
@Entity
@Table(name = "METRICS", schema = "kudutest@kudu")
public class Metrics
{
@EmbeddedId
private MetricsId id;
private double value;
}
@Embeddable
public class MetricsId
{
private String host;
private String metric;
private long time;
}
Table: METRICS
is created in Kudu as follows:
Columns:
host: String (Primary Key = true)
metric: String (Primary Key = true)
time: Int64 (Primary Key = true)
value: Double
Check test-case for more details.
-
Datastores Supported
- Releases
-
Architecture
-
Concepts
-
Getting Started in 5 minutes
-
Features
- Object Mapper
- Polyglot Persistence
- Queries Support
- JPQL (JPA Query Language)
- Native Queries
- Batch insert update
- Schema Generation
- Primary Key Auto generation
- Transaction Management
- REST Based Access
- Geospatial Persistence and Queries
- Graph Database Support
-
Composite Keys
-
No hard annotation for schema
-
Support for Mapped superclass
-
Object to NoSQL Data Mapping
-
Cassandra's User Defined Types and Indexes on Collections
-
Support for aggregation
- Scalar Queries over Cassandra
- Connection pooling using Kundera Cassandra
- Configuration
-
Kundera with Couchdb
-
Kundera with Elasticsearch
-
Kundera with HBase
-
Kundera with Kudu
-
Kundera with RethinkDB
-
Kundera with MongoDB
-
Kundera with OracleNoSQL
-
Kundera with Redis
-
Kundera with Spark
-
Extend Kundera
- Sample Codes and Examples
-
Blogs and Articles
-
Tutorials
* Kundera with Openshift
* Kundera with Play Framework
* Kundera with GWT
* Kundera with JBoss
* Kundera with Spring
-
Performance
-
Troubleshooting
-
FAQ
- Production deployments
- Feedback