Advertisement
aleksppetrov

Untitled

Jul 24th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. stride = STRIDE;
  2. autoReallocate = sparkDataChunk.isAutoReallocating();
  3. count = sparkDataChunk.getPointsCount();
  4.  
  5. FloatBuffer tempBuffer = (FloatBuffer) sparkDataChunk.points().rewind();
  6. if(autoReallocate) {
  7. points = FloatBuffer.allocate(tempBuffer.limit());
  8. } else {
  9. points = FloatBuffer.allocate(tempBuffer.capacity());
  10. }
  11. points.limit(tempBuffer.limit());
  12. points.rewind();
  13. points.put(tempBuffer);
  14. points.rewind();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement