You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2014/08/03 07:34:11 UTC

[jira] [Resolved] (SPARK-2354) BitSet Range Expanded when creating new one

     [ https://issues.apache.org/jira/browse/SPARK-2354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Wendell resolved SPARK-2354.
------------------------------------

    Resolution: Not a Problem

Closing per [~srowen]

> BitSet Range Expanded when creating new one
> -------------------------------------------
>
>                 Key: SPARK-2354
>                 URL: https://issues.apache.org/jira/browse/SPARK-2354
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: Yijie Shen
>            Priority: Minor
>
> BitSet has a constructor parameter named "numBits: Int" and indicate the bit num inside.
> And also, there is a function called "capacity" which represents the long words number to hold the bits.
> When creating new BitSet,for example in '|', I thought the new created one shouldn't be the size of longer words' length, instead, it should be the longer set's num of bit
> {code}def |(other: BitSet): BitSet = {
>     val newBS = new BitSet(math.max(numBits, other.numBits)) 
> // I know by now the numBits isn't a field
> {code}
> Does it have any other reason to expand the BitSet range I don't know?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org