-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hubspot to pubsub batch #8
base: dev
Are you sure you want to change the base?
Conversation
# Conflicts: # dataflow/flex-templates/pom.xml
<version>2.2.6</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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.
new line
String getOutputTopic(); | ||
|
||
void setOutputTopic(String outputTopic); | ||
} |
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.
new line
* limitations under the License. | ||
*/ | ||
|
||
/** Cdap Salesforce template. */ |
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.
Hubspot
import org.slf4j.LoggerFactory; | ||
|
||
/** | ||
* HubspotToPubsub Pipeline. |
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.
Add description and example usage
+ "It will write a set of files with names like {prefix}-###.") | ||
String getOutputTxtFilePathPrefix(); | ||
|
||
void setOutputTxtFilePathPrefix(String outputTxtFilePathPrefix); |
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.
Not needed?
Because we don't output to txt
|
||
@Validation.Required | ||
@Description("Input .txt file path with Hubspot records.") | ||
String getInputTxtFilePath(); |
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.
Not needed?
Because we don't read from txt
* limitations under the License. | ||
*/ | ||
|
||
/** Cdap Salesforce template. */ |
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.
Hubspot
* The {@link FormatOutput} wraps a String serializable messages with the {@link PubsubMessage} | ||
* class. | ||
*/ | ||
public static class FormatOutput extends PTransform<PCollection<String>, PDone> { |
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.
Maybe it will be better to move this out of FormatOutput
class and make a method writeToPubsub(...)
* limitations under the License. | ||
*/ | ||
|
||
/** Cdap Salesforce template. */ |
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.
Hubspot
* limitations under the License. | ||
*/ | ||
|
||
/** Cdap Salesforce template. */ |
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.
Hubspot
Hubspot to pubsub batch has completed.