Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type handler #7

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Type handler #7

wants to merge 5 commits into from

Conversation

pawankashyapollion
Copy link
Collaborator

@pawankashyapollion pawankashyapollion commented Dec 5, 2024

Type handler is used for Casting source type to Cassandra supported type

Current Supported data type are:

  1. Boolean

  2. Float

  3. Double

  4. Date

  5. String

  6. Text

  7. Timestamp

  8. Integer

  9. List

    • String
    • Date
    • Text
    • Integer
    • Date
    • Timestamp
    • Float
    • Double
  10. Set

    • String
    • Date
    • Text
    • Integer
    • Date
    • Timestamp
    • Float
    • Double

TODO
We are going to create a common method which is common integration point of this class and then we will mark all of this method to private. we have kept this method public for a while to wire up UT

@taherkl taherkl requested review from akash-furax and akashthawaitcc and removed request for akashthawaitcc December 5, 2024 05:02
return ByteBuffer.wrap(byteArray);
}

public static Date handleCassandraDateType(String colName, JSONObject valuesJson) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the need of passing column name? We can just pass the value and get the new casted value in return? This will be for all the functions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we are doing multiple parsing so it should be under the Handler Class

@taherkl
Copy link
Collaborator

taherkl commented Dec 9, 2024

@pawankashyapollion Add a description with the list of datatypes covered in this PR alongwith the list of datatypes which are yet to covered.

@taherkl taherkl changed the base branch from dev-repackaged to main December 9, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants