Git Product home page Git Product logo

Comments (7)

KotlinFactory avatar KotlinFactory commented on August 26, 2024

Hey TheSilentPro,

this seems to happen since the values in your List are not represented as a Long internally.
Since Lists in Java can only store primitives and the Wrappers of primitive types can't be casted to each other this exception is thrown.

We have implemented behavior to handle this in our primitive getters but not yet in Lists.
If you have any suggestion on how to improve SimplixStorage in this regard I would be more than happy to implement it.

Maybe some sort of a getList: List with a mapper function that maps a raw value to T would be helpful (But could also be
implemented manually)

If you feel like it is helpful to chat with us in realtime to get this improved feel free to join our discord: discord.simplixsoft.com.

Regards,
Leonhard

from simplixstorage.

KotlinFactory avatar KotlinFactory commented on August 26, 2024

Any further questions?

from simplixstorage.

TheSilentPro avatar TheSilentPro commented on August 26, 2024

Nope, that would be all, just want to be notified when this is fixed :)

from simplixstorage.

KotlinFactory avatar KotlinFactory commented on August 26, 2024

I am sorry for the late response - I am currently in my final exams in school.
I still don't exactly understand where this is an issue of SimplixStorage. What exactly do you want to change?
The exception you are currently getting is caused by the way the data is read by the background library SimplixStorage is using - It seems to be recognized as an Integer, not as a Long.
As stated above we would need to convert every value in the List manually which would require some computation time.

Regards,
Leonhard

from simplixstorage.

TheSilentPro avatar TheSilentPro commented on August 26, 2024

No problem i am also doing finals soon and i dont actually fully remember what the issue is.
I think i was trying to use the longs you get from longList and loop through them but since they are read by integers it looks like its throwing that error.

And wouldn't this be a problem if it is an actual long but it recognizes it as an Integer. Because longs can be higher than integers so wouldn't that be somewhat an issue

Basically i am trying to get a list of longs but it looks like its returning a list of Integers instead. Trying to loop through them causes those errors.

from simplixstorage.

KotlinFactory avatar KotlinFactory commented on August 26, 2024

Well it looks like its just of a different data type. getIntergerList should do the job.

from simplixstorage.

TheSilentPro avatar TheSilentPro commented on August 26, 2024

Well it looks like its just of a different data type. getIntergerList should do the job.

not all longs can be an interger though? So storing a long that isn't an int when trying to retrieve it will result in an error..

from simplixstorage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.