-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertical col support #945
base: main
Are you sure you want to change the base?
Vertical col support #945
Conversation
common/client/src/main/java/zingg/common/client/util/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
common/client/src/main/java/zingg/common/client/util/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
common/client/src/main/java/zingg/common/client/util/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
@@ -124,7 +124,7 @@ | |||
return updatedRecords; | |||
} | |||
|
|||
protected int getUserInput(ZFrame<D,R,C> lines,ZFrame<D,R,C> currentPair,String cluster_id) { | |||
protected int getUserInput(ZFrame<D,R,C> lines,ZFrame<D,R,C> currentPair,String cluster_id) throws ZinggClientException { |
Check warning
Code scanning / PMD
The method parameter name 'z_source' doesn't match '[a-z][a-zA-Z0-9]*' Warning
spark/client/src/main/java/zingg/spark/client/util/SparkVerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
spark/client/src/main/java/zingg/spark/client/util/SparkVerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
common/client/src/main/java/zingg/common/client/util/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
common/client/src/main/java/zingg/common/client/util/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
public final String dob; | ||
public final String row_uuid; | ||
|
||
public Customer(String fname, String lname, String ssn, String dob, String row_uuid) { |
Check warning
Code scanning / PMD
The method parameter name 'z_source' doesn't match '[a-z][a-zA-Z0-9]*' Warning test
spark/client/src/main/java/zingg/spark/client/util/SparkVerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
@@ -0,0 +1,4 @@ | |||
package zingg.common.client.util.verticalDisplay; |
Check warning
Code scanning / PMD
Package name contains upper case characters Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per Java conventions, package names should not contain upper case. We made that mistake earlier but it makes sense to follow the conventions.
@@ -0,0 +1,4 @@ | |||
package zingg.common.client.util.verticalDisplay; | |||
|
|||
public abstract class VerticalDisplayModel { |
Check warning
Code scanning / PMD
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not make it an interface /functional interface?
@@ -0,0 +1,13 @@ | |||
package zingg.common.client.util.verticalDisplay; |
Check warning
Code scanning / PMD
Package name contains upper case characters Warning
package zingg.common.client.util.verticalDisplay; | ||
|
||
public class VerticalDisplayTwoRowModel extends VerticalDisplayModel { | ||
private final String Field; |
Check warning
Code scanning / PMD
Avoid unused private fields such as 'session'. Warning
|
||
public class VerticalDisplayTwoRowModel extends VerticalDisplayModel { | ||
private final String Field; | ||
private final String Value1; |
Check warning
Code scanning / PMD
Avoid unused private fields such as 'session'. Warning
private final String Value1; | ||
private final String Value2; | ||
|
||
public VerticalDisplayTwoRowModel(String Field, String Value1, String Value2) { |
Check warning
Code scanning / PMD
The method parameter name 'z_source' doesn't match '[a-z][a-zA-Z0-9]*' Warning
@@ -0,0 +1,45 @@ | |||
package zingg.common.client.util.verticalDisplay; |
Check warning
Code scanning / PMD
Package name contains upper case characters Warning
...on/client/src/main/java/zingg/common/client/util/verticalDisplay/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
List<VerticalDisplayModel> rowList = getList(comparison_pairs, columns); | ||
return dfObjectUtil.getDFFromObjectList(rowList, VerticalDisplayTwoRowModel.class); | ||
} catch (Exception exception) { | ||
throw new ZinggClientException("Error occurred while converting to vertical, " + exception.getMessage()); |
Check warning
Code scanning / PMD
Thrown exception does not preserve the stack trace of exception 't' on all code paths Warning
...on/client/src/main/java/zingg/common/client/util/verticalDisplay/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
...on/client/src/main/java/zingg/common/client/util/verticalDisplay/VerticalDisplayUtility.java
Fixed
Show fixed
Hide fixed
...on/client/src/main/java/zingg/common/client/util/verticalDisplay/VerticalDisplayUtility.java
Fixed
Show resolved
Hide resolved
@@ -0,0 +1,4 @@ | |||
package zingg.common.client.util.verticalDisplay; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per Java conventions, package names should not contain upper case. We made that mistake earlier but it makes sense to follow the conventions.
@@ -0,0 +1,4 @@ | |||
package zingg.common.client.util.verticalDisplay; | |||
|
|||
public abstract class VerticalDisplayModel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not make it an interface /functional interface?
...on/client/src/main/java/zingg/common/client/util/verticalDisplay/VerticalDisplayUtility.java
Fixed
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
public void testWithoutNulls() throws Exception, ZinggClientException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also try with an empty dataframe?
No description provided.