Skip to content
Snippets Groups Projects
Commit f350f140 authored by Charles Reiss's avatar Charles Reiss
Browse files

Use ARRAY_SAMPLE_SIZE constant instead of 100.0

parent 5912cc49
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ private[spark] object SizeEstimator extends Logging {
val elem = JArray.get(array, index)
size += SizeEstimator.estimate(elem, state.visited)
}
state.size += ((length / 100.0) * size).toLong
state.size += ((length / (ARRAY_SAMPLE_SIZE * 1.0)) * size).toLong
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment