Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4059 Pig on Spark
  3. PIG-4604

Clean up: refactor the package import order in the files under pig/src/org/apache/pig/backend/hadoop/executionengine/spark according to certain rule

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: spark-branch
    • Component/s: spark
    • Labels:
      None

      Description

      after discussion with Mohit Sabharwal,Xuefu Zhang,Praveen Rachabattuni, Xianda Ke:

      now we use following rule about the package import order in files under pig/src/org/apache/pig/backend/hadoop/executionengine/spark:
      1. java.* and javax.*
      2. blank line
      3. scala.*
      4. blank line
      5. Project classes (org.apache.*)
      6. blank line
      7. Third party libraries (org., com., etc.)

      If you use IntelliJ as your IDE, you can reference the attachment to configure your import layout of your java code style:
      1. Use IntelliJ
      2. Select “File”>”Settings”>”Code Style”>”Java”>”Imports”->”Import
      Layout”

      Now the files under pig/src/org/apache/pig/backend/hadoop/executionengine/spark has different package import order. They should be in the same order.

        Attachments

        1. PIG-4604.patch
          18 kB
          liyunzhang
        2. IntelliJ_Java_codeStyle_Imports2.png
          24 kB
          liyunzhang
        3. IntelliJ_Java_codeStyle_Imports1.png
          57 kB
          liyunzhang

          Activity

            People

            • Assignee:
              kellyzly liyunzhang
              Reporter:
              kellyzly liyunzhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: