Skip to content
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

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

Conversation

SadyrovZhakhongir
Copy link
Collaborator

Hubspot to pubsub batch has completed.

<version>2.2.6</version>
</dependency>
</dependencies>
</project>
Copy link
Contributor

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);
}
Copy link
Contributor

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. */
Copy link
Contributor

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.
Copy link
Contributor

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);
Copy link
Contributor

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();
Copy link
Contributor

@Amar3tto Amar3tto May 24, 2023

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. */
Copy link
Contributor

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> {
Copy link
Contributor

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. */
Copy link
Contributor

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. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hubspot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants