org.apache.hadoop
Annotation Type HadoopVersionAnnotation


@Retention(value=RUNTIME)
@Target(value=PACKAGE)
public @interface HadoopVersionAnnotation

A package attribute that captures the version of Hadoop that was compiled.


Required Element Summary
 java.lang.String date
          Get the date when Hadoop was compiled.
 java.lang.String revision
          Get the subversion revision.
 java.lang.String url
          Get the url for the subversion repository.
 java.lang.String user
          Get the username that compiled Hadoop.
 java.lang.String version
          Get the Hadoop version
 

Element Detail

version

public abstract java.lang.String version
Get the Hadoop version

Returns:
the version string "0.6.3-dev"

user

public abstract java.lang.String user
Get the username that compiled Hadoop.


date

public abstract java.lang.String date
Get the date when Hadoop was compiled.

Returns:
the date in unix 'date' format

url

public abstract java.lang.String url
Get the url for the subversion repository.


revision

public abstract java.lang.String revision
Get the subversion revision.

Returns:
the revision number as a string (eg. "451451")


Copyright © 2009 The Apache Software Foundation