Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by C.Y. Kan
Cassandra Data Modeling and Analysis
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Cassandra Data Modeling and Analysis
Table of Contents
Cassandra Data Modeling and Analysis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Bird's Eye View of Cassandra
What is NoSQL?
NoSQL Database types
Key/value pair store
Column-family store
Document-based repository
Graph database
What is Cassandra?
Google BigTable
Amazon Dynamo
Cassandra's high-level architecture
Partitioning
Replication
Snitch
Seed node
Gossip and Failure detection
Write path
Read path
Repair mechanism
Features of Cassandra
Summary
2. Cassandra Data Modeling
What is unique to the Cassandra data model?
Map and SortedMap
Logical data structure
Column
Row
Column family
Keyspace
Super column and super column family
Collections
No foreign key
No join
No sequence
Counter
Time-To-Live
Secondary index
Modeling by query
Relational version
Cassandra version
Data modeling considerations
Data duplication
Sorting
Wide row
Bucketing
Valueless column
Time-series data
Cassandra Query Language
Summary
3. CQL Data Types
Introduction to CQL
CQL statements
CQL command-line client – cqlsh
Native data types
Cassandra implementation
A not-so-long example
ASCII
Bigint
BLOB
Boolean
Decimal
Double
Float
Inet
Int
Text
Timestamp
Timeuuid
UUID
Varchar
Varint
Counter
Collections
Set
List
Map
User-defined type and tuple type
Summary
4. Indexes
Primary index
Compound primary key and composite partition key
Time-series data
Partitioner
Murmur3Partitioner
RandomPartitioner
ByteOrderedPartitioner
Paging and token function
Secondary indexes
Multiple secondary indexes
Secondary index do's and don'ts
Summary
5. First-cut Design and Implementation
Stock Screener Application
An introduction to financial analysis
Stock quote data
Initial data model
Processing flow
System design
The operating system
Java Runtime Environment
Java Native Access
Cassandra version
Programming language
Cassandra driver
The integrated development environment
The system overview
Code design and development
Data Feed Provider
Collecting stock quote
Transforming data
Storing data in Cassandra
Putting them all together
Stock Screener
Data Scoper
Time-series data
The screening rule
The Stock Screener engine
Test run
Summary
6. Enhancing a Version
Evolving the data model
The enhancement approach
Watch List
Alert List
Adding the descriptive stock name
Queries on alerts
Enhancing the code
Data Mapper and Archiver
Stock Screener Engine
Queries on Alerts
Implementing system changes
Summary
7. Deployment and Monitoring
Replication strategies
Data replication
SimpleStrategy
NetworkTopologyStrategy
Setting up the cluster for Stock Screener Application
System and network configuration
Global settings
Configuration procedure
Legacy data migration procedure
Deploying the Stock Screener Application
Monitoring
Nodetool
JMX and MBeans
The system log
Performance tuning
Java virtual machine
Caching
Partition key cache
Row cache
Monitoring cache
Enabling/disabling cache
Summary
8. Final Thoughts
Supplementary information
Client drivers
Security
Authentication
Authorization
Inter-node encryption
Backup and restore
Useful websites
Apache Cassandra official site
PlanetCassandra
DataStax
Hadoop integration
Summary
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset