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

Feature:Less strict RecordBuilder #46

Open
1 task done
atimin opened this issue Aug 21, 2024 · 0 comments
Open
1 task done

Feature:Less strict RecordBuilder #46

atimin opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@atimin
Copy link
Member

atimin commented Aug 21, 2024

Current problem

I need to initialize the type of a record otherwise I have a null exception during Bucket.writeRecord.

        Record record = Record.builder()
                .entryName("sensor-1")
                .timestamp(timestamp)
                .type("application/octet-stream")
                .body("Record #1".getBytes())
                .build();

Possible solution

The default content type is "application/octet-stream". Additionally let's rename it to content_type as it is called in the other SDKs.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@atimin atimin added the enhancement New feature or request label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant