You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2008/06/24 12:36:25 UTC
svn commit: r671120 [2/4] - in /incubator/hama/trunk: ./ lib/ lib/findbugs/
lib/findbugs/plugin/ lib/jetty-ext/ src/ src/docs/ src/docs/src/
src/docs/src/documentation/ src/docs/src/documentation/classes/
src/docs/src/documentation/content/ src/docs/sr...
Added: incubator/hama/trunk/src/docs/src/documentation/content/xdocs/hama-eclipse-formatter.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/content/xdocs/hama-eclipse-formatter.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/src/documentation/content/xdocs/hama-eclipse-formatter.xml (added)
+++ incubator/hama/trunk/src/docs/src/documentation/content/xdocs/hama-eclipse-formatter.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<profiles version="11">
+<profile kind="CodeFormatterProfile" name="hama-eclipse-formatter" version="11">
+<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/>
+<setting id="org.eclipse.jdt.core.compiler.source" value="1.5"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="8"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
+<setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/>
+<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="2"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/>
+<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.5"/>
+<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.5"/>
+<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/>
+</profile>
+</profiles>
Added: incubator/hama/trunk/src/docs/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/content/xdocs/index.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/src/documentation/content/xdocs/index.xml (added)
+++ incubator/hama/trunk/src/docs/src/documentation/content/xdocs/index.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Welcome to Hama project</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Recent News</title>
+ <ul>
+ <li>20 May 2008 - Hama accepted to Apache Incubator Project.
+ <br />
+ The Incubator PMC have voted to accept Hama to be a apache incubator project.
+ </li>
+ <li>23 June 2008 - An <a href="http://wiki.apache.org/hama/ScaLAPACK">meeting</a>
+ with Professor Choi J. which a member of
+ <a href="http://www.netlib.org/scalapack/">ScaLAPACK</a> team.</li>
+ </ul>
+ </section>
+ <section>
+ <title> Introduction </title>
+ <p>
+ <strong>Hama</strong> is a parallel matrix computational package,
+ which provides an library of matrix operations for the large-scale
+ processing development environment and Map/Reduce framework for
+ the large-scale Numerical Analysis and Data Mining, which need the
+ intensive computation power of matrix inversion, e.g. linear regression,
+ PCA, SVM and etc.
+ It will be also useful for many scientific applications, e.g. physics
+ computations, linear algebra, computational fluid dynamics, statistics,
+ graphic rendering and many more.
+ </p>
+ </section>
+ <section>
+ <title>Parallelism in Map/Reduce</title>
+ <p>
+ <img src="./images/MapReduce.png" alt="Map/Reduce Diagram" />
+ </p>
+ </section>
+ </body>
+</document>
Added: incubator/hama/trunk/src/docs/src/documentation/content/xdocs/mailing_lists.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/content/xdocs/mailing_lists.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/src/documentation/content/xdocs/mailing_lists.xml (added)
+++ incubator/hama/trunk/src/docs/src/documentation/content/xdocs/mailing_lists.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
+"http://forrest.apache.org/dtd/document-v20.dtd">
+
+<document>
+
+ <header>
+ <title>Mailing Lists</title>
+ </header>
+
+ <body>
+ <section>
+ <title>Hama User List</title>
+ <p>
+ If you use Hama, please subscribe to the Hama user mailing list.<br />
+ The Hama user mailing list is :
+ <a href="mailto:hama-user@incubator.apache.org">hama-user@incubator.apache.org</a>.
+ </p>
+ <ul>
+ <li><a href="mailto:hama-user-subscribe@incubator.apache.org">Subscribe to List</a></li>
+ <li><a href="mailto:hama-user-unsubscribe@incubator.apache.org">Unsubscribe from List</a></li>
+ </ul>
+ </section>
+
+ <section>
+ <title>Hama Developer List</title>
+ <p>
+ If you'd like to contribute to Hama, please subscribe to the Hama developer mailing list.<br />
+ The Hama developer mailing list is :
+ <a href="mailto:hama-dev@incubator.apache.org">hama-dev@incubator.apache.org</a>.
+ </p>
+ <ul>
+ <li><a href="mailto:hama-dev-subscribe@incubator.apache.org">Subscribe to List</a></li>
+ <li><a href="mailto:hama-dev-unsubscribe@incubator.apache.org">Unsubscribe from List</a></li>
+ </ul>
+ </section>
+
+ <section>
+ <title>Hama Commit List</title>
+ <p>
+ If you'd like to see changes made in Hama's version control system then subscribe
+ to the Hama commit mailing list.<br />
+ The Hama commit mailing list is :
+ <a href="mailto:hama-commits@incubator.apache.org">hama-commits@incubator.apache.org</a>.
+ </p>
+ <ul>
+ <li><a href="mailto:hama-commits-subscribe@incubator.apache.org">Subscribe to List</a></li>
+ <li><a href="mailto:hama-commits-unsubscribe@incubator.apache.org">Unsubscribe from List</a></li>
+ </ul>
+ </section>
+ </body>
+
+</document>
Added: incubator/hama/trunk/src/docs/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/content/xdocs/site.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/src/documentation/content/xdocs/site.xml (added)
+++ incubator/hama/trunk/src/docs/src/documentation/content/xdocs/site.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+Forrest site.xml
+
+This file contains an outline of the site's information content. It is used to:
+- Generate the website menus (though these can be overridden - see docs)
+- Provide semantic, location-independent aliases for internal 'site:' URIs, eg
+<link href="site:changes"> links to changes.html (or ../changes.html if in
+ subdir).
+- Provide aliases for external URLs in the external-refs section. Eg, <link
+ href="ext:cocoon"> links to http://xml.apache.org/cocoon/
+
+See http://forrest.apache.org/docs/linking.html for more info.
+-->
+
+<site label="Hama" href="" xmlns="http://apache.org/forrest/linkmap/1.0">
+
+ <docs label="Home">
+ <overview label="Overview" href="index.html" />
+ <!--
+ not yet ready things.
+
+ <started label="Getting Started" href="getting_started.html" />
+ <api label="API Docs" href="ext:api/index" />
+ <faq label="FAQ" href="ext:faq" />
+ -->
+ <lists label="Mailing Lists" href="mailing_lists.html" />
+ </docs>
+
+ <docs label="Developers Centre">
+ <environments label="Environments" href="environments.html" />
+ </docs>
+
+ <external-refs>
+ <site href="http://incubator.apache.org/hama/"/>
+ <lists href="http://incubator.apache.org/hama/mailing_lists.html"/>
+ <releases href="http://incubator.apache.org/hama/releases.html">
+ <download href="#Download" />
+ </releases>
+ <wiki href="http://wiki.apache.org/hama" />
+ <faq href="http://wiki.apache.org/hama/FAQ" />
+ <zlib href="http://www.zlib.net/" />
+ <lzo href="http://www.oberhumer.com/opensource/lzo/" />
+ <gzip href="http://www.gzip.org/" />
+ <cygwin href="http://www.cygwin.com/" />
+ <osx href="http://www.apple.com/macosx" />
+ <api href="api/">
+ <started href="overview-summary.html#overview_description" />
+ <index href="index.html" />
+ <org href="org/">
+ <apache href="apache/">
+ <hama href="hama/">
+ </hama>
+ </apache>
+ </org>
+ </api>
+ </external-refs>
+
+</site>
Added: incubator/hama/trunk/src/docs/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/content/xdocs/tabs.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/src/documentation/content/xdocs/tabs.xml (added)
+++ incubator/hama/trunk/src/docs/src/documentation/content/xdocs/tabs.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"
+ "http://forrest.apache.org/dtd/tab-cocoon-v10.dtd">
+
+<tabs software="Hama"
+ title="Hama"
+ copyright="The Apache Software Foundation"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <!-- The rules are:
+ @dir will always have /index.html added.
+ @href is not modified unless it is root-relative and obviously specifies a
+ directory (ends in '/'), in which case /index.html will be added
+ -->
+
+ <tab label="Home" dir="" />
+ <tab label="Wiki" href="http://wiki.apache.org/hama" />
+ <tab label="Incubation Status" href="http://incubator.apache.org/projects/hama.html" />
+
+</tabs>
Added: incubator/hama/trunk/src/docs/src/documentation/resources/images/MapReduce.png
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/resources/images/MapReduce.png?rev=671120&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/trunk/src/docs/src/documentation/resources/images/MapReduce.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/trunk/src/docs/src/documentation/resources/images/apache-incubator-hama-white.png
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/resources/images/apache-incubator-hama-white.png?rev=671120&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/trunk/src/docs/src/documentation/resources/images/apache-incubator-hama-white.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/trunk/src/docs/src/documentation/resources/images/apache-incubator-hama.png
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/resources/images/apache-incubator-hama.png?rev=671120&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/hama/trunk/src/docs/src/documentation/resources/images/apache-incubator-hama.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/hama/trunk/src/docs/src/documentation/resources/images/favicon.ico
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/resources/images/favicon.ico?rev=671120&view=auto
==============================================================================
(empty)
Added: incubator/hama/trunk/src/docs/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/src/documentation/skinconf.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/src/documentation/skinconf.xml (added)
+++ incubator/hama/trunk/src/docs/src/documentation/skinconf.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,349 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+Skin configuration file. This file contains details of your project,
+which will be used to configure the chosen Forrest skin.
+-->
+
+<!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.6-3//EN" "http://forrest.apache.org/dtd/skinconfig-v06-3.dtd">
+<skinconfig>
+ <!-- To enable lucene search add provider="lucene" (default is google).
+ Add box-location="alt" to move the search box to an alternate location
+ (if the skin supports it) and box-location="all" to show it in all
+ available locations on the page. Remove the <search> element to show
+ no search box. @domain will enable sitesearch for the specific domain with google.
+ In other words google will search the @domain for the query string.
+ -->
+
+ <search name="Hama" domain="incubator.apache.org" provider="google"/>
+
+ <!-- Disable the print link? If enabled, invalid HTML 4.0.1 -->
+ <disable-print-link>true</disable-print-link>
+ <!-- Disable the PDF link? -->
+ <disable-pdf-link>false</disable-pdf-link>
+ <!-- Disable the POD link? -->
+ <disable-pod-link>true</disable-pod-link>
+ <!-- Disable the Text link? FIXME: NOT YET IMPLEMENETED. -->
+ <disable-txt-link>true</disable-txt-link>
+ <!-- Disable the xml source link? -->
+ <!-- The xml source link makes it possible to access the xml rendition
+ of the source frim the html page, and to have it generated statically.
+ This can be used to enable other sites and services to reuse the
+ xml format for their uses. Keep this disabled if you don't want other
+ sites to easily reuse your pages.-->
+ <disable-xml-link>true</disable-xml-link>
+
+ <!-- Disable navigation icons on all external links? -->
+ <disable-external-link-image>true</disable-external-link-image>
+
+ <!-- Disable w3c compliance links?
+ Use e.g. align="center" to move the compliance links logos to
+ an alternate location default is left.
+ (if the skin supports it) -->
+ <disable-compliance-links>true</disable-compliance-links>
+
+ <!-- Render mailto: links unrecognisable by spam harvesters? -->
+ <obfuscate-mail-links>false</obfuscate-mail-links>
+
+ <!-- Disable the javascript facility to change the font size -->
+ <disable-font-script>true</disable-font-script>
+
+ <!-- project logo -->
+ <project-name></project-name>
+ <project-description></project-description>
+ <project-url></project-url>
+ <project-logo></project-logo>
+
+ <!-- group logo -->
+ <group-name>Hama</group-name>
+ <group-description></group-description>
+ <group-url>index.html</group-url>
+ <group-logo>images/apache-incubator-hama-white.png</group-logo>
+
+ <!-- optional host logo (e.g. sourceforge logo)
+ default skin: renders it at the bottom-left corner -->
+ <host-url></host-url>
+ <host-logo></host-logo>
+
+ <!-- relative url of a favicon file, normally favicon.ico -->
+ <favicon-url>images/favicon.ico</favicon-url>
+
+ <!-- The following are used to construct a copyright statement -->
+ <year>2008</year>
+ <vendor>The Apache Software Foundation.</vendor>
+ <copyright-link>http://www.apache.org/licenses/</copyright-link>
+
+ <!-- Some skins use this to form a 'breadcrumb trail' of links.
+ Use location="alt" to move the trail to an alternate location
+ (if the skin supports it).
+ Omit the location attribute to display the trail in the default location.
+ Use location="none" to not display the trail (if the skin supports it).
+ For some skins just set the attributes to blank.
+ <trail>
+ <link>
+ </trail>
+ -->
+
+ <trail>
+ <link1 name="Apache" href="http://www.apache.org/" />
+ <link2 name="Incubator" href="http://incubator.apache.org/" />
+ <link3 name="Hama" href="http://incubator.apache.org/hama/" />
+ </trail>
+
+ <!-- Configure the TOC, i.e. the Table of Contents.
+ @max-depth
+ how many "section" levels need to be included in the
+ generated Table of Contents (TOC).
+ @min-sections
+ Minimum required to create a TOC.
+ @location ("page","menu","page,menu", "none")
+ Where to show the TOC.
+ -->
+ <toc max-depth="2" min-sections="1" location="page"/>
+
+ <!-- Heading types can be clean|underlined|boxed -->
+ <headings type="clean"/>
+
+ <!-- The optional feedback element will be used to construct a
+ feedback link in the footer with the page pathname appended:
+ <a href="@href">{@to}</a>
+ <feedback to="webmaster@foo.com"
+ href="mailto:webmaster@foo.com?subject=Feedback " >
+ Send feedback about the website to:
+ </feedback>
+ -->
+ <!--
+ extra-css - here you can define custom css-elements that are
+ a. overriding the fallback elements or
+ b. adding the css definition from new elements that you may have
+ used in your documentation.
+ -->
+ <extra-css>
+ <!--Example of b.
+ To define the css definition of a new element that you may have used
+ in the class attribute of a <p> node.
+ e.g. <p class="quote"/>
+
+ p.quote {
+ margin-left: 2em;
+ padding: .5em;
+ background-color: #f0f0f0;
+ font-family: monospace;
+ }
+ -->
+ #footer a { color: black; }
+ </extra-css>
+
+ <colors>
+ <!-- These values are used for the generated CSS files. -->
+
+ <!-- Krysalis -->
+<!--
+ <color name="header" value="#FFFFFF"/>
+
+ <color name="tab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="tab-unselected" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#a5b6c6" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#a5b6c6"/>
+ <color name="subheading" value="#CFDCED"/>
+
+ <color name="navstrip" value="#CFDCED" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="toolbox" value="#a5b6c6"/>
+ <color name="border" value="#a5b6c6"/>
+
+ <color name="menu" value="#F7F7F7" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="dialog" value="#F7F7F7"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+
+ <color name="table" value="#a5b6c6"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#a5b6c6"/>
+
+ <color name="footer" value="#a5b6c6"/>
+-->
+
+ <!-- Forrest -->
+<!--
+ <color name="header" value="#294563"/>
+
+ <color name="tab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="tab-unselected" value="#b5c7e7" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="subtab-selected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="subtab-unselected" value="#4a6d8c" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+ <color name="heading" value="#294563"/>
+ <color name="subheading" value="#4a6d8c"/>
+ <color name="heading" value="#294563"/>
+ <color name="subheading" value="#4a6d8c"/>
+
+ <color name="navstrip" value="#cedfef" font="#0F3660" link="#0F3660" vlink="#0F3660" hlink="#000066"/>
+
+ <color name="dialog" value="#4a6d8c"/>
+ <color name="menu" value="#4a6d8c" font="#cedfef" link="#ffffff" vlink="#ffffff" hlink="#ffcf00"/>
+
+ <color name="body" value="#ffffff" link="#0F3660" vlink="#009999" hlink="#000066"/>
+ <color name="table" value="#7099C5"/>
+ <color name="table-cell" value="#f0f0ff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#CFDCED"/>
+
+ <color name="footer" value="#cedfef"/>
+ <color name="toolbox" value="#4a6d8c"/>
+ <color name="border" value="#294563"/>
+-->
+ <!-- Collabnet -->
+ <!--
+ <color name="header" value="#003366"/>
+ <color name="tab-selected" value="#dddddd" link="#555555" vlink="#555555" hlink="#555555"/>
+ <color name="tab-unselected" value="#999999" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="subtab-selected" value="#cccccc" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#cccccc" link="#555555" vlink="#555555" hlink="#555555"/>
+
+ <color name="heading" value="#003366"/>
+ <color name="subheading" value="#888888"/>
+
+ <color name="navstrip" value="#dddddd" font="#555555"/>
+ <color name="toolbox" value="#dddddd" font="#555555"/>
+ <color name="border" value="#999999"/>
+
+ <color name="menu" value="#ffffff"/>
+ <color name="dialog" value="#eeeeee"/>
+
+ <color name="body" value="#ffffff"/>
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#ffffff"/>
+-->
+ <!-- Lenya using pelt-->
+<!--
+ <color name="header" value="#ffffff"/>
+
+ <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+ <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-selected" value="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+ <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+
+ <color name="heading" value="#E5E4D9"/>
+ <color name="subheading" value="#000000"/>
+ <color name="published" value="#4C6C8F" font="#FFFFFF"/>
+ <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+ <color name="navstrip" value="#E5E4D9" font="#000000"/>
+
+ <color name="toolbox" value="#CFDCED" font="#000000"/>
+
+ <color name="border" value="#999999"/>
+ <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff" current="#FFCC33" />
+ <color name="menuheading" value="#cfdced" font="#000000" />
+ <color name="searchbox" value="#E5E4D9" font="#000000"/>
+
+ <color name="dialog" value="#CFDCED"/>
+ <color name="body" value="#ffffff" />
+
+ <color name="table" value="#ccc"/>
+ <color name="table-cell" value="#ffffff"/>
+ <color name="highlight" value="#ffff00"/>
+ <color name="fixme" value="#cc6600"/>
+ <color name="note" value="#006699"/>
+ <color name="warning" value="#990000"/>
+ <color name="code" value="#003366"/>
+
+ <color name="footer" value="#E5E4D9"/>
+-->
+ </colors>
+
+ <!-- Settings specific to PDF output. -->
+ <pdf>
+ <!--
+ Supported page sizes are a0, a1, a2, a3, a4, a5, executive,
+ folio, legal, ledger, letter, quarto, tabloid (default letter).
+ Supported page orientations are portrait, landscape (default
+ portrait).
+ Supported text alignments are left, right, justify (default left).
+ -->
+ <page size="letter" orientation="portrait" text-align="left"/>
+
+ <!--
+ Margins can be specified for top, bottom, inner, and outer
+ edges. If double-sided="false", the inner edge is always left
+ and the outer is always right. If double-sided="true", the
+ inner edge will be left on odd pages, right on even pages,
+ the outer edge vice versa.
+ Specified below are the default settings.
+ -->
+ <margins double-sided="false">
+ <top>1in</top>
+ <bottom>1in</bottom>
+ <inner>1.25in</inner>
+ <outer>1in</outer>
+ </margins>
+
+ <!--
+ Print the URL text next to all links going outside the file
+ -->
+ <show-external-urls>false</show-external-urls>
+
+ <!--
+ Disable the copyright footer on each page of the PDF.
+ A footer is composed for each page. By default, a "credit" with role=pdf
+ will be used, as explained below. Otherwise a copyright statement
+ will be generated. This latter can be disabled.
+ -->
+ <disable-copyright-footer>false</disable-copyright-footer>
+ </pdf>
+
+ <!-- Credits are typically rendered as a set of small clickable
+ images in the page footer.
+ Use box-location="alt" to move the credit to an alternate location
+ (if the skin supports it).
+ -->
+ <credits>
+ <credit box-location="alt">
+ <name>Built with Apache Forrest</name>
+ <url>http://forrest.apache.org/</url>
+ <image>images/built-with-forrest-button.png</image>
+ <width>88</width>
+ <height>31</height>
+ </credit>
+ <!-- A credit with @role="pdf" will be used to compose a footer
+ for each page in the PDF, using either "name" or "url" or both.
+ -->
+ <!--
+ <credit role="pdf">
+ <name>Built with Apache Forrest</name>
+ <url>http://forrest.apache.org/</url>
+ </credit>
+ -->
+ </credits>
+
+</skinconfig>
Added: incubator/hama/trunk/src/docs/status.xml
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/docs/status.xml?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/docs/status.xml (added)
+++ incubator/hama/trunk/src/docs/status.xml Tue Jun 24 03:36:21 2008
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2002-2004 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<status>
+
+ <developers>
+ <person name="Joe Bloggs" email="joe@joescompany.org" id="JB" />
+ <!-- Add more people here -->
+ </developers>
+
+ <changes>
+ <!-- Add new releases here -->
+ <release version="0.1" date="unreleased">
+ <!-- Some action types have associated images. By default, images are
+ defined for 'add', 'fix', 'remove', 'update' and 'hack'. If you add
+ src/documentation/resources/images/<foo>.jpg images, these will
+ automatically be used for entries of type <foo>. -->
+
+ <action dev="JB" type="add" context="admin">
+ Initial Import
+ </action>
+ <!-- Sample action:
+ <action dev="JB" type="fix" due-to="Joe Contributor"
+ due-to-email="joec@apache.org" fixes-bug="123">
+ Fixed a bug in the Foo class.
+ </action>
+ -->
+ </release>
+ </changes>
+
+ <todo>
+ <actions priority="high">
+ <action context="docs" dev="JB">
+ Customize this template project with your project's details. This
+ TODO list is generated from 'status.xml'.
+ </action>
+ <action context="docs" dev="JB">
+ Add lots of content. XML content goes in
+ <code>src/documentation/content/xdocs</code>, or wherever the
+ <code>${project.xdocs-dir}</code> property (set in
+ <code>forrest.properties</code>) points.
+ </action>
+ <action context="feedback" dev="JB">
+ Mail <link
+ href="mailto:forrest-dev@xml.apache.org">forrest-dev@xml.apache.org</link>
+ with feedback.
+ </action>
+ </actions>
+ <!-- Add todo items. @context is an arbitrary string. Eg:
+ <actions priority="high">
+ <action context="code" dev="SN">
+ </action>
+ </actions>
+ <actions priority="medium">
+ <action context="docs" dev="open">
+ </action>
+ </actions>
+ -->
+ </todo>
+
+</status>
Added: incubator/hama/trunk/src/examples/org/apache/hama/examples/ExampleDriver.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/examples/org/apache/hama/examples/ExampleDriver.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/examples/org/apache/hama/examples/ExampleDriver.java (added)
+++ incubator/hama/trunk/src/examples/org/apache/hama/examples/ExampleDriver.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,35 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama.examples;
+
+import org.apache.hadoop.util.ProgramDriver;
+
+public class ExampleDriver {
+ public static void main(String[] args) {
+ ProgramDriver pgd = new ProgramDriver();
+ try {
+ pgd.addClass("multiplication", MatrixMultiplication.class,
+ "A map/reduce multiplication.");
+ pgd.driver(args);
+ } catch (Throwable e) {
+ e.printStackTrace();
+ }
+ }
+}
Added: incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java (added)
+++ incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,64 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama.examples;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hama.Matrix;
+
+public class MatrixMultiplication {
+
+ public static void main(String[] args) {
+ if (args.length < 3) {
+ System.out.println("multiplication <map_num> <row_m> <column_n>");
+ System.exit(-1);
+ }
+
+ int map = Integer.parseInt(args[0]);
+ int row = Integer.parseInt(args[1]);
+ int column = Integer.parseInt(args[2]);
+
+ Configuration conf = new HBaseConfiguration();
+
+ conf.setInt("mapred.map.tasks", map);
+ conf.setInt("mapred.reduce.tasks", 1);
+
+ Matrix a = Matrix.random(conf, row, column);
+ System.out.println("Create the " + row + " * " + column
+ + " random matrix A.");
+ Matrix b = Matrix.random(conf, row, column);
+ System.out.println("Create the " + row + " * " + column
+ + " random matrix B.");
+
+ long start = System.currentTimeMillis();
+ Matrix c = a.multiply(b);
+ long end = System.currentTimeMillis();
+
+ System.out.println(executeTime(start, end));
+ a.clear();
+ b.clear();
+ c.clear();
+ }
+
+ public static String executeTime(long start, long end) {
+ return "(" + String.format("%.2f", Double.valueOf((end - start) * 0.001))
+ + " sec)";
+ }
+}
Added: incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java (added)
+++ incubator/hama/trunk/src/java/org/apache/hama/AbstractMatrix.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,237 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama;
+
+import java.io.IOException;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HColumnDescriptor;
+import org.apache.hadoop.hbase.HTableDescriptor;
+import org.apache.hadoop.hbase.MasterNotRunningException;
+import org.apache.hadoop.hbase.client.HBaseAdmin;
+import org.apache.hadoop.hbase.client.HTable;
+import org.apache.hadoop.hbase.io.BatchUpdate;
+import org.apache.hadoop.hbase.io.Cell;
+import org.apache.hadoop.io.Text;
+import org.apache.hama.mapred.MatrixMapReduce;
+import org.apache.log4j.Logger;
+
+/**
+ * Methods of the matrix classes
+ */
+public abstract class AbstractMatrix extends MatrixMapReduce implements
+ MatrixInterface {
+ static final Logger LOG = Logger.getLogger(AbstractMatrix.class);
+
+ /** Hbase Configuration */
+ protected HBaseConfiguration config;
+ /** Hbase admin object */
+ protected HBaseAdmin admin;
+ /** The name of Matrix */
+ protected Text matrixName;
+ /** Hbase table object */
+ protected HTable table;
+ /** Matrix attribute description */
+ protected HTableDescriptor tableDesc;
+ /** The parallel degree of map function */
+ protected int mapper;
+ /** The parallel degree of reduce function */
+ protected int reducer;
+
+ /**
+ * Sets the job configuration
+ *
+ * @param conf configuration object
+ */
+ public void setConfiguration(Configuration conf) {
+ config = (HBaseConfiguration) conf;
+ try {
+ admin = new HBaseAdmin(config);
+ } catch (MasterNotRunningException e) {
+ LOG.info(e);
+ }
+ mapper = conf.getInt("mapred.map.tasks", 1);
+ reducer = conf.getInt("mapred.reduce.tasks", 1);
+ }
+
+ /**
+ * Create matrix space
+ */
+ protected void create() {
+ try {
+ tableDesc.addFamily(new HColumnDescriptor(Constants.METADATA.toString()));
+ LOG.info("Initializaing.");
+ admin.createTable(tableDesc);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+
+ /** {@inheritDoc} */
+ public int getRowDimension() {
+ Cell rows = null;
+ try {
+ rows = table.get(Constants.METADATA, Constants.METADATA_ROWS);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+
+ return bytesToInt(rows.getValue());
+ }
+
+ /** {@inheritDoc} */
+ public int getColumnDimension() {
+ Cell columns = null;
+ try {
+ columns = table.get(Constants.METADATA, Constants.METADATA_COLUMNS);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ return bytesToInt(columns.getValue());
+ }
+
+ /** {@inheritDoc} */
+ public double get(int i, int j) {
+ Text row = new Text(String.valueOf(i));
+ Text column = new Text(Constants.COLUMN + String.valueOf(j));
+ Cell c;
+ double result = -1;
+ try {
+ c = table.get(row, column);
+ if (c != null) {
+ result = toDouble(c.getValue());
+ }
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ return result;
+ }
+
+ /** {@inheritDoc} */
+ public FeatureVector getRowVector(int row) {
+ try {
+ SortedMap<Integer, Double> result = new TreeMap<Integer, Double>();
+ for (Map.Entry<Text, Cell> f : table
+ .getRow(new Text(String.valueOf(row))).entrySet()) {
+ result.put(getIndex(f.getKey()), toDouble(f.getValue().getValue()));
+ }
+ return new FeatureVector(result);
+ } catch (IOException e) {
+ e.printStackTrace();
+ return null;
+ }
+ }
+
+ /** {@inheritDoc} */
+ public void set(int i, int j, double d) {
+ BatchUpdate b = new BatchUpdate(new Text(String.valueOf(i)));
+ b.put(new Text(Constants.COLUMN + String.valueOf(j)), toBytes(d));
+ try {
+ table.commit(b);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+
+ /** {@inheritDoc} */
+ public void add(int i, int j, double d) {
+ // TODO Auto-generated method stub
+ }
+
+ /** {@inheritDoc} */
+ public void deleteColumnEquals(int j) {
+ // TODO Auto-generated method stub
+ }
+
+ /** {@inheritDoc} */
+ public void deleteRowEquals(int i) {
+ // TODO Auto-generated method stub
+ }
+
+ /** {@inheritDoc} */
+ public void reset(int m, int n) {
+ // TODO Auto-generated method stub
+ }
+
+ /** {@inheritDoc} */
+ public void setDimension(int rows, int columns) {
+ BatchUpdate b = new BatchUpdate(Constants.METADATA);
+ b.put(Constants.METADATA_ROWS, intToBytes(rows));
+ b.put(Constants.METADATA_COLUMNS, intToBytes(columns));
+
+ try {
+ table.commit(b);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+
+ /** {@inheritDoc} */
+ public String getName() {
+ return (matrixName != null) ? matrixName.toString() : null;
+ }
+
+ /**
+ * Return the value of determinant
+ *
+ * @return the value of determinant
+ */
+ public double getDeterminant() {
+ try {
+ return toDouble(table.get(
+ new Text(String.valueOf(Constants.DETERMINANT)),
+ new Text(Constants.COLUMN)).getValue());
+ } catch (IOException e) {
+ LOG.error(e, e);
+ return -1;
+ }
+ }
+
+ /** {@inheritDoc} */
+ public Matrix copy() {
+ // TODO
+ return null;
+ }
+
+ /** {@inheritDoc} */
+ public void save(String matrixName) {
+ // TODO
+ }
+
+ /** {@inheritDoc} */
+ public void close() {
+ admin = null;
+ matrixName = null;
+ tableDesc = null;
+ }
+
+ /** {@inheritDoc} */
+ public void clear() {
+ try {
+ admin.deleteTable(matrixName);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+}
Added: incubator/hama/trunk/src/java/org/apache/hama/Constants.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/Constants.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Constants.java (added)
+++ incubator/hama/trunk/src/java/org/apache/hama/Constants.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,62 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama;
+
+import org.apache.hadoop.io.Text;
+
+/**
+ * Some constants used in the hama
+ */
+public class Constants {
+ /** Meta-columnfamily to store the matrix-info */
+ public final static Text METADATA = new Text("metadata:");
+ /** The number of the matrix rows */
+ public final static Text METADATA_ROWS = new Text("metadata:rows");
+ /** The number of the matrix columns */
+ public final static Text METADATA_COLUMNS = new Text("metadata:columns");
+ /** The type of the matrix */
+ public final static Text METADATA_TYPE = new Text("metadata:type");
+
+ /** plus operator */
+ public final static String PLUS = "+";
+ /** minus operator */
+ public final static String MINUS = "-";
+
+ /** Default columnfamily name */
+ public final static Text COLUMN = new Text("column:");
+ /** The numerator version of the fraction matrix */
+ public final static Text NUMERATOR = new Text("numerator:");
+ /** The denominator version of the fration matrix */
+ public final static Text DENOMINATOR = new Text("denominator:");
+ /** The original version of the fraction matrix */
+ public final static Text ORIGINAL = new Text("original:");
+ /** The lower matrix version of the triangular matrix */
+ public final static Text LOWER = new Text("lower:");
+ /** The upper matrix version of the triangular matrix */
+ public final static Text UPPER = new Text("upper:");
+
+ /** A determinant value record */
+ public final static Text DETERMINANT = new Text("determinant");
+
+ /** Temporary random matices name-head */
+ public final static String RANDOM = "random";
+ /** Temporary result matices name-head */
+ public final static String RESULT = "result";
+}
Added: incubator/hama/trunk/src/java/org/apache/hama/Decomposition.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/Decomposition.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Decomposition.java (added)
+++ incubator/hama/trunk/src/java/org/apache/hama/Decomposition.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama;
+
+/**
+ * A representation of the literals of the enumeration '<em><b>Decomposition technique</b></em>'
+ */
+public enum Decomposition {
+
+ /** Cholesky Decomposition */
+ Cholesky,
+ /** Crout Decomposition */
+ Crout,
+ /** Doolittle Decomposition */
+ Doolittle
+
+}
Added: incubator/hama/trunk/src/java/org/apache/hama/FeatureVector.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/FeatureVector.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/FeatureVector.java (added)
+++ incubator/hama/trunk/src/java/org/apache/hama/FeatureVector.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,102 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama;
+
+import java.util.Map;
+import java.util.SortedMap;
+
+import org.apache.log4j.Logger;
+
+/**
+ * A feature vector. Features are dimension-value pairs. This class implements a
+ * simple dictionary data structure to map dimensions onto their values. Note
+ * that for convenience, features do not have be sorted according to their
+ * dimensions at this point. The SVMLightTrainer class has an option for sorting
+ * input vectors prior to training.
+ */
+public class FeatureVector {
+ static final Logger LOG = Logger.getLogger(FeatureVector.class);
+ protected int[] m_dims;
+ protected double[] m_vals;
+
+ public FeatureVector(SortedMap<Integer, Double> result) {
+ this.m_dims = new int[result.keySet().size()];
+ this.m_vals = new double[result.keySet().size()];
+
+ int i = 0;
+ for (Map.Entry<Integer, Double> f : result.entrySet()) {
+ this.m_dims[i] = f.getKey();
+ this.m_vals[i] = f.getValue();
+ i++;
+ }
+ }
+
+ /**
+ * Returns the cosine similarity between two feature vectors.
+ */
+ public double getCosine(FeatureVector v) {
+ double cosine = 0.0;
+ int dim;
+ double q_i, d_i;
+ for (int i = 0; i < Math.min(this.size(), v.size()); i++) {
+ dim = v.getDimAt(i);
+ q_i = v.getValueAt(dim);
+ d_i = this.getValueAt(dim);
+ cosine += q_i * d_i;
+ }
+ return cosine / (this.getL2Norm() * v.getL2Norm());
+ }
+
+ /**
+ * Returns the linear norm factor of this vector's values (i.e., the sum of
+ * it's values).
+ */
+ public double getL1Norm() {
+ double sum = 0.0;
+ for (int i = 0; i < m_vals.length; i++) {
+ sum += m_vals[i];
+ }
+ return sum;
+ }
+
+ /**
+ * Returns the L2 norm factor of this vector's values.
+ */
+ public double getL2Norm() {
+ double square_sum = 0.0;
+ for (int i = 0; i < m_vals.length; i++) {
+ square_sum += (m_vals[i] * m_vals[i]);
+ }
+ return Math.sqrt(square_sum);
+ }
+
+ public int getDimAt(int index) {
+ return m_dims[index];
+ }
+
+ public double getValueAt(int index) {
+ return m_vals[index];
+ }
+
+ public int size() {
+ return m_dims.length;
+ }
+
+}
Added: incubator/hama/trunk/src/java/org/apache/hama/FractionMatrix.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/FractionMatrix.java?rev=671120&view=auto
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/FractionMatrix.java (added)
+++ incubator/hama/trunk/src/java/org/apache/hama/FractionMatrix.java Tue Jun 24 03:36:21 2008
@@ -0,0 +1,228 @@
+/**
+ * Copyright 2007 The Apache Software Foundation
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hama;
+
+import java.io.IOException;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HColumnDescriptor;
+import org.apache.hadoop.hbase.HTableDescriptor;
+import org.apache.hadoop.hbase.client.HTable;
+import org.apache.hadoop.hbase.io.BatchUpdate;
+import org.apache.hadoop.io.Text;
+import org.apache.hadoop.mapred.JobClient;
+import org.apache.hadoop.mapred.JobConf;
+import org.apache.hama.algebra.CroutDecompositionMap;
+import org.apache.hama.mapred.FractionMatrixInputFormat;
+import org.apache.hama.mapred.MatrixOutputFormat;
+
+/**
+ * A library for mathematical operations on matrices of fractions.
+ */
+public class FractionMatrix extends AbstractMatrix {
+
+ /**
+ * Construct
+ *
+ * @param conf configuration object
+ */
+ public FractionMatrix(Configuration conf) {
+ setConfiguration(conf);
+ }
+
+ /**
+ * Construct an fraction matrix
+ *
+ * @param conf configuration object
+ * @param matrixName the name of the matrix
+ */
+ public FractionMatrix(Configuration conf, Text matrixName) {
+ try {
+ setConfiguration(conf);
+ this.matrixName = matrixName;
+
+ if (!admin.tableExists(matrixName)) {
+ tableDesc = new HTableDescriptor(matrixName.toString());
+ tableDesc.addFamily(new HColumnDescriptor(Constants.NUMERATOR.toString()));
+ tableDesc.addFamily(new HColumnDescriptor(Constants.DENOMINATOR.toString()));
+ tableDesc.addFamily(new HColumnDescriptor(Constants.ORIGINAL.toString()));
+ create();
+ }
+
+ table = new HTable(config, matrixName);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ /** {@inheritDoc} */
+ public Matrix multiply(Matrix b) {
+ return null;
+ }
+
+ /** {@inheritDoc} */
+ public Matrix addition(Matrix b) {
+ return null;
+ }
+
+ /** {@inheritDoc} */
+ public double determinant() {
+ return 0;
+ }
+
+ /** {@inheritDoc} */
+ public Matrix subtraction(Matrix b) {
+ return null;
+ }
+
+ /** {@inheritDoc} */
+ public TriangularMatrix decompose(Decomposition technique) {
+ if(technique.equals(Decomposition.Crout))
+ return croutDecompose();
+ else return null;
+ }
+
+ private TriangularMatrix croutDecompose() {
+ JobConf jobConf = new JobConf(config);
+ jobConf.setJobName("Crout Decomposition");
+
+ String output = Constants.RESULT + System.currentTimeMillis();
+ TriangularMatrix b = new TriangularMatrix(config, new Text(output));
+
+ jobConf.setInputFormat(FractionMatrixInputFormat.class);
+ jobConf.setOutputFormat(MatrixOutputFormat.class);
+ CroutDecompositionMap.initJob(getName(), output, CroutDecompositionMap.class,
+ jobConf);
+
+ jobConf.setNumMapTasks(mapper);
+ jobConf.setNumReduceTasks(reducer);
+
+ try {
+ JobClient.runJob(jobConf);
+ } catch (IOException e) {
+ LOG.info(e);
+ }
+
+ return b;
+ }
+
+ /**
+ * Gets the entry value of numerator matrix N(i, j)
+ *
+ * @param i ith row of numerator matrix N
+ * @param j jth column of numerator matrix N
+ * @return the value of entry
+ */
+ public double getFromNumerator(int i, int j) {
+ try {
+ return toDouble(table.get(new Text(String.valueOf(i)), new Text(
+ Constants.NUMERATOR + String.valueOf(j))).getValue());
+ } catch (IOException e) {
+ LOG.error(e, e);
+ return 0;
+ }
+ }
+
+ /**
+ * Sets the double value of numerator matrix N(i, j)
+ *
+ * @param i ith row of numerator matrix N
+ * @param j jth column of numerator matrix N
+ * @param d the value of entry
+ */
+ public void setToNumerator(int i, int j, double d) {
+ BatchUpdate b = new BatchUpdate(new Text(String.valueOf(i)));
+ b.put(new Text(Constants.NUMERATOR + String.valueOf(j)), toBytes(d));
+ try {
+ table.commit(b);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+
+ /**
+ * Gets the entry value of denominator matrix D(i, j)
+ *
+ * @param i ith row of denominator matrix D
+ * @param j jth column of denominator matrix D
+ * @return the value of entry
+ */
+ public double getFromDenominator(int i, int j) {
+ try {
+ return toDouble(table.get(new Text(String.valueOf(i)), new Text(
+ Constants.DENOMINATOR + String.valueOf(j))).getValue());
+ } catch (IOException e) {
+ LOG.error(e, e);
+ return 0;
+ }
+ }
+
+ /**
+ * Sets the double value of denominator matrix D(i, j)
+ *
+ * @param i ith row of denominator matrix D
+ * @param j jth column of denominator matrix D
+ * @param d the value of entry
+ */
+ public void setToDenominator(int i, int j, double d) {
+ BatchUpdate b = new BatchUpdate(new Text(String.valueOf(i)));
+ b.put(new Text(Constants.DENOMINATOR + String.valueOf(j)), toBytes(d));
+ try {
+ table.commit(b);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+
+ /**
+ * Sets the double value of original matrix O(i, j)
+ *
+ * @param i ith row of original matrix O
+ * @param j jth column of original matrix O
+ * @param d the value of entry
+ */
+ public void setToOriginal(int i, int j, double d) {
+ BatchUpdate b = new BatchUpdate(new Text(String.valueOf(i)));
+ b.put(new Text(Constants.ORIGINAL + String.valueOf(j)), toBytes(d));
+ try {
+ table.commit(b);
+ } catch (IOException e) {
+ LOG.error(e, e);
+ }
+ }
+
+ /**
+ * Gets the entry value of original matrix O(i, j)
+ *
+ * @param i ith row of original matrix O
+ * @param j jth column of original matrix O
+ * @return a double
+ */
+ public double getFromOriginal(int i, int j) {
+ try {
+ return toDouble(table.get(new Text(String.valueOf(i)),
+ new Text(Constants.ORIGINAL + String.valueOf(j))).getValue());
+ } catch (IOException e) {
+ LOG.error(e, e);
+ return 0;
+ }
+ }
+
+}