You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by mlw5415 <ml...@163.com> on 2013/04/15 05:35:25 UTC

does mahout source repo miss lots of file?

mahout-0.7 tag, such as follow url:
http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list 
we only see 4 class:
AbstractList.java
AbstractObjectList.java
ObjectArrayList.java
SimpleLongArrayList.java

but in the maven repo, i unzip the source jar file, and find lot of missing file as bellow:
AbstractByteList.java
AbstractCharList.java
AbstractDoubleList.java
AbstractFloatList.java
AbstractIntList.java
AbstractLongList.java
AbstractShortList.java
ByteArrayList.java
CharArrayList.java
DoubleArrayList.java
FloatArrayList.java
IntArrayList.java
LongArrayList.java
package.html
ShortArrayList.java

Re: Re: does mahout source repo miss lots of file?

Posted by Ted Dunning <te...@gmail.com>.
Sounds like the right steps.

Is there a reason that you are not using the trunk version?

Can you include error messages?


On Sun, Apr 14, 2013 at 9:28 PM, mlw5415 <ml...@163.com> wrote:

> Do I miss some step?
>
> First download sources from '
> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/',
> Then use 'mvn compile' or 'mvn package'.
>
> Thank for any help.
>
>
>
>
>
> From: Ted Dunning
> Date: 2013-04-15 12:17
> To: mlw5415
> CC: user
> Subject: Re: Re: does mahout source repo miss lots of file?
> Yes.  They are generated.
>
>
>
>
> On Sun, Apr 14, 2013 at 9:08 PM, mlw5415 <ml...@163.com> wrote:
>
> > **
> > These classes are generated at compile time?
> >
> > I download sources '
> > http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/' and use 'mvn
> > compile' but got errors.
> > I can image that 'Abstract*.java' can be generated, but the other class,
> > such as 'ByteArrayList.java' has lot of  complex logic could not be
> > generated,
> >
> > The following code can be generated?
> >    public void beforeInsert(int index, byte element) {
> >     // overridden for performance only.
> >     if (size == index) {
> >       add(element);
> >       return;
> >     }
> >     if (index > size || index < 0) {
> >
> >       throw new IndexOutOfBoundsException("Index: " + index + ", Size: "
> + size);
> >     }
> >     ensureCapacity(size + 1);
> >     System.arraycopy(elements, index, elements, index + 1, size - index);
> >     elements[index] = element;
> >     size++;
> >   }
> >
> > ------------------------------
> >
> >  *From:* Ted Dunning <te...@gmail.com>
> > *Date:* 2013-04-15 11:55
> > *To:* user@mahout.apache.org; mlw5415 <ml...@163.com>
> > *Subject:* Re: does mahout source repo miss lots of file?
> >  These classes are generated at compile time.
> >
> >
> > On Sun, Apr 14, 2013 at 8:35 PM, mlw5415 <ml...@163.com> wrote:
> >
> >> mahout-0.7 tag, such as follow url:
> >>
> >>
> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list
> >> we only see 4 class:
> >> AbstractList.java
> >> AbstractObjectList.java
> >> ObjectArrayList.java
> >> SimpleLongArrayList.java
> >>
> >> but in the maven repo, i unzip the source jar file, and find lot of
> >> missing file as bellow:
> >> AbstractByteList.java
> >> AbstractCharList.java
> >> AbstractDoubleList.java
> >> AbstractFloatList.java
> >> AbstractIntList.java
> >> AbstractLongList.java
> >> AbstractShortList.java
> >> ByteArrayList.java
> >> CharArrayList.java
> >> DoubleArrayList.java
> >> FloatArrayList.java
> >> IntArrayList.java
> >> LongArrayList.java
> >> package.html
> >> ShortArrayList.java
> >
> >
> >

Re: Re: does mahout source repo miss lots of file?

Posted by mlw5415 <ml...@163.com>.
Do I miss some step?

First download sources from 'http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/',
Then use 'mvn compile' or 'mvn package'.

Thank for any help.





From: Ted Dunning
Date: 2013-04-15 12:17
To: mlw5415
CC: user
Subject: Re: Re: does mahout source repo miss lots of file?
Yes.  They are generated.




On Sun, Apr 14, 2013 at 9:08 PM, mlw5415 <ml...@163.com> wrote:

> **
> These classes are generated at compile time?
>
> I download sources '
> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/' and use 'mvn
> compile' but got errors.
> I can image that 'Abstract*.java' can be generated, but the other class,
> such as 'ByteArrayList.java' has lot of  complex logic could not be
> generated,
>
> The following code can be generated?
>    public void beforeInsert(int index, byte element) {
>     // overridden for performance only.
>     if (size == index) {
>       add(element);
>       return;
>     }
>     if (index > size || index < 0) {
>
>       throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size);
>     }
>     ensureCapacity(size + 1);
>     System.arraycopy(elements, index, elements, index + 1, size - index);
>     elements[index] = element;
>     size++;
>   }
>
> ------------------------------
>
>  *From:* Ted Dunning <te...@gmail.com>
> *Date:* 2013-04-15 11:55
> *To:* user@mahout.apache.org; mlw5415 <ml...@163.com>
> *Subject:* Re: does mahout source repo miss lots of file?
>  These classes are generated at compile time.
>
>
> On Sun, Apr 14, 2013 at 8:35 PM, mlw5415 <ml...@163.com> wrote:
>
>> mahout-0.7 tag, such as follow url:
>>
>> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list
>> we only see 4 class:
>> AbstractList.java
>> AbstractObjectList.java
>> ObjectArrayList.java
>> SimpleLongArrayList.java
>>
>> but in the maven repo, i unzip the source jar file, and find lot of
>> missing file as bellow:
>> AbstractByteList.java
>> AbstractCharList.java
>> AbstractDoubleList.java
>> AbstractFloatList.java
>> AbstractIntList.java
>> AbstractLongList.java
>> AbstractShortList.java
>> ByteArrayList.java
>> CharArrayList.java
>> DoubleArrayList.java
>> FloatArrayList.java
>> IntArrayList.java
>> LongArrayList.java
>> package.html
>> ShortArrayList.java
>
>
>

Re: Re: does mahout source repo miss lots of file?

Posted by Ted Dunning <te...@gmail.com>.
Yes.  They are generated.




On Sun, Apr 14, 2013 at 9:08 PM, mlw5415 <ml...@163.com> wrote:

> **
> These classes are generated at compile time?
>
> I download sources '
> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/' and use 'mvn
> compile' but got errors.
> I can image that 'Abstract*.java' can be generated, but the other class,
> such as 'ByteArrayList.java' has lot of  complex logic could not be
> generated,
>
> The following code can be generated?
>    public void beforeInsert(int index, byte element) {
>     // overridden for performance only.
>     if (size == index) {
>       add(element);
>       return;
>     }
>     if (index > size || index < 0) {
>
>       throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size);
>     }
>     ensureCapacity(size + 1);
>     System.arraycopy(elements, index, elements, index + 1, size - index);
>     elements[index] = element;
>     size++;
>   }
>
> ------------------------------
>
>  *From:* Ted Dunning <te...@gmail.com>
> *Date:* 2013-04-15 11:55
> *To:* user@mahout.apache.org; mlw5415 <ml...@163.com>
> *Subject:* Re: does mahout source repo miss lots of file?
>  These classes are generated at compile time.
>
>
> On Sun, Apr 14, 2013 at 8:35 PM, mlw5415 <ml...@163.com> wrote:
>
>> mahout-0.7 tag, such as follow url:
>>
>> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list
>> we only see 4 class:
>> AbstractList.java
>> AbstractObjectList.java
>> ObjectArrayList.java
>> SimpleLongArrayList.java
>>
>> but in the maven repo, i unzip the source jar file, and find lot of
>> missing file as bellow:
>> AbstractByteList.java
>> AbstractCharList.java
>> AbstractDoubleList.java
>> AbstractFloatList.java
>> AbstractIntList.java
>> AbstractLongList.java
>> AbstractShortList.java
>> ByteArrayList.java
>> CharArrayList.java
>> DoubleArrayList.java
>> FloatArrayList.java
>> IntArrayList.java
>> LongArrayList.java
>> package.html
>> ShortArrayList.java
>
>
>

Re: Re: does mahout source repo miss lots of file?

Posted by mlw5415 <ml...@163.com>.
These classes are generated at compile time?

I download sources 'http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/' and use 'mvn compile' but got errors.
I can image that 'Abstract*.java' can be generated, but the other class, such as 'ByteArrayList.java' has lot of  complex logic could not be generated, 

The following code can be generated?
  public void beforeInsert(int index, byte element) {
    // overridden for performance only.
    if (size == index) {
      add(element);
      return;
    }
    if (index > size || index < 0) {
      throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size);
    }
    ensureCapacity(size + 1);
    System.arraycopy(elements, index, elements, index + 1, size - index);
    elements[index] = element;
    size++;
  }





From: Ted Dunning
Date: 2013-04-15 11:55
To: user@mahout.apache.org; mlw5415
Subject: Re: does mahout source repo miss lots of file?
These classes are generated at compile time.



On Sun, Apr 14, 2013 at 8:35 PM, mlw5415 <ml...@163.com> wrote:

mahout-0.7 tag, such as follow url:
http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list
we only see 4 class:
AbstractList.java
AbstractObjectList.java
ObjectArrayList.java
SimpleLongArrayList.java

but in the maven repo, i unzip the source jar file, and find lot of missing file as bellow:
AbstractByteList.java
AbstractCharList.java
AbstractDoubleList.java
AbstractFloatList.java
AbstractIntList.java
AbstractLongList.java
AbstractShortList.java
ByteArrayList.java
CharArrayList.java
DoubleArrayList.java
FloatArrayList.java
IntArrayList.java
LongArrayList.java
package.html
ShortArrayList.java

Re: does mahout source repo miss lots of file?

Posted by Ted Dunning <te...@gmail.com>.
These classes are generated at compile time.


On Sun, Apr 14, 2013 at 8:35 PM, mlw5415 <ml...@163.com> wrote:

> mahout-0.7 tag, such as follow url:
>
> http://svn.apache.org/repos/asf/mahout/tags/mahout-0.7/math/src/main/java/org/apache/mahout/math/list
> we only see 4 class:
> AbstractList.java
> AbstractObjectList.java
> ObjectArrayList.java
> SimpleLongArrayList.java
>
> but in the maven repo, i unzip the source jar file, and find lot of
> missing file as bellow:
> AbstractByteList.java
> AbstractCharList.java
> AbstractDoubleList.java
> AbstractFloatList.java
> AbstractIntList.java
> AbstractLongList.java
> AbstractShortList.java
> ByteArrayList.java
> CharArrayList.java
> DoubleArrayList.java
> FloatArrayList.java
> IntArrayList.java
> LongArrayList.java
> package.html
> ShortArrayList.java