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

Range content retrieval with javax.jcr.Binary to improve performance. #387

Closed
wants to merge 2 commits into from

Conversation

lsitu
Copy link
Contributor

@lsitu lsitu commented May 24, 2014

https://www.pivotaltracker.com/s/projects/684825/stories/71429770
Added Binary.read(byte[] b, int position) for range content retrieval, with range content size limitation to balance the memory usage.


builder = status(PARTIAL_CONTENT).entity(rangeInputStream)
.header("Content-Range", contentRangeValue);
final long maxBufferSize = 10240000; // 10MB max buffer size?
Copy link

Choose a reason for hiding this comment

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

Please add a unit test to FedoraContentTest.java to provide test coverage for this new logic in ContentExposingResource.java.

through skip bytes with the static setter for max buffer.
@awoods
Copy link

awoods commented May 27, 2014

Resolved with: 4da6bb1

Addresses: https://www.pivotaltracker.com/story/show/71429770

@awoods awoods closed this May 27, 2014
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.

None yet

2 participants