-
Notifications
You must be signed in to change notification settings - Fork 122
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
adding session template #438
Conversation
public void process() throws ZinggClientException { | ||
try { | ||
LOG.info("Data document generation starts"); | ||
|
||
try { | ||
data = PipeUtil.read(spark, false, false, args.getData()); | ||
data = PipeUtilBase.read(session, 0, false, args.getData()); |
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.
this has to be getPipeUtil() - see trainer etc
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.
pipeutils already have session info - i don't think we need to pass them. again check existing code
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.
Yeah sorry I missed that function name there.
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.
minor changes - please do. else all looks good
@@ -41,7 +44,7 @@ protected void createModelDocument() throws ZinggClientException { | |||
LOG.info("Model document generation starts"); | |||
|
|||
try { | |||
markedRecords = PipeUtil.read(spark, false, false, PipeUtil.getTrainingDataMarkedPipe(args)); | |||
markedRecords = PipeUtilBase.read(session, 0, false, PipeUtilBase.getTrainingDataMarkedPipe(args)); |
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.
see comment above
@@ -20,6 +20,9 @@ public ZFrame<D, R, C> readInternal(boolean addLineNo, | |||
public ZFrame<D, R, C> read(boolean addLineNo, int numPartitions, | |||
boolean addSource, Pipe... pipes); | |||
|
|||
public ZFrame<D, R, C> read(S session, int numPartitions, |
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.
this is not needed...we are creating concrete classes which have the session
For documenter package