Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stride = STRIDE;
- autoReallocate = sparkDataChunk.isAutoReallocating();
- count = sparkDataChunk.getPointsCount();
- FloatBuffer tempBuffer = (FloatBuffer) sparkDataChunk.points().rewind();
- if(autoReallocate) {
- points = FloatBuffer.allocate(tempBuffer.limit());
- } else {
- points = FloatBuffer.allocate(tempBuffer.capacity());
- }
- points.limit(tempBuffer.limit());
- points.rewind();
- points.put(tempBuffer);
- points.rewind();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement