iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
89.56k stars 26.48k forks source link

Tuple Table pattern #1276

Open iluwatar opened 4 years ago

iluwatar commented 4 years ago

Description: The Tuple Table design pattern is a structural pattern that provides a flexible way to manage complex data structures. It is used to store and manipulate a collection of tuples (fixed-size collections of elements) in a tabular format. This pattern is particularly useful when dealing with databases or any system that requires the efficient handling of structured data.

Main elements of the Tuple Table pattern:

  1. Tuple: A finite ordered list of elements.
  2. Table: A collection of tuples organized in rows and columns, similar to a database table.
  3. Schema: Defines the structure of the tuples within the table, specifying the types and order of elements.
  4. Operations: Functions to add, remove, update, and query tuples within the table.
  5. Flexibility: Ability to handle different types of data within the same table by defining appropriate schemas.

References:

  1. Tuple Table pattern overview: Google Books Reference
  2. Project contribution guidelines: GitHub Contribution Guidelines

Acceptance Criteria:

  1. Implement the Tuple Table pattern with a clear definition of tuples, table, and schema.
  2. Provide basic operations for managing tuples within the table, including addition, removal, update, and querying of tuples.
  3. Ensure comprehensive unit tests are included to verify the correct implementation of the pattern.
atif-github-venture commented 2 years ago

@iluwatar - can you please assign this to me. I want to give it shot.

iluwatar commented 2 years ago

Wonderful, go ahead @atif-github-venture

atif-github-venture commented 2 years ago

Thank you.. i will begin working on it.