-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
STORM-2578: Apply new code style to storm-elasticsearch #2803
Conversation
@HeartSaVioR could you review the changes? Thanks. |
String index = tupleMapper.getIndex(tuple); | ||
String type = tupleMapper.getType(tuple); | ||
String id = tupleMapper.getId(tuple); | ||
Map<String, String> params = tupleMapper.getParams(tuple, new HashMap<>()); |
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.
should indent with Tab
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.
hi Danny, we might be not allowed to indent with tab because of FileTabCharacter in checkstyle. Please correct me if I misunderstood here.
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.
It was broken indentation (mixed tab and space) and the change fixes the indentation.
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.
Looks good broadly, then what about the checkstyle config now, did it not work for the module now?
@milantracy Thanks for the contribution! Could you please reduce the number of max violation count in pom.xml in storm-elasticsearch so that we can see how many spots your patch address, and also we never break it again? |
Hi @HeartSaVioR , reduced the value to 0. |
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.
Mostly looks great. Couple of nits. Thanks for the contribution!
*/ | ||
public interface EsLookupResultOutput extends Serializable { | ||
|
||
/** | ||
* Covert Elasticsearch response to a collection of {@link Values}. |
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.
nit: Covert -> Convert
String index = tupleMapper.getIndex(tuple); | ||
String type = tupleMapper.getType(tuple); | ||
String id = tupleMapper.getId(tuple); | ||
Map<String, String> params = tupleMapper.getParams(tuple, new HashMap<>()); |
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.
It was broken indentation (mixed tab and space) and the change fixes the indentation.
* | ||
* @param index index name | ||
* @param type document type to be stored | ||
* @param id unique document id in Elastisearch |
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.
nit: Elastisearch -> Elasticsearch
thanks @HeartSaVioR, change the fix accordingly. |
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.
+1
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.
+1
No description provided.