-
Notifications
You must be signed in to change notification settings - Fork 124
added Input Data POJO #1100
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
added Input Data POJO #1100
Conversation
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.
lookgs good overall, added few extra comments
|
||
public interface IData<D, R, C> { | ||
List<ZFrame<D, R, C>> getData(); | ||
InputType getInputType(); |
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 be removed
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.
getFirst
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.
getByIndex
import zingg.common.client.cols.ZidAndFieldDefSelector; | ||
import zingg.common.core.executor.processunit.IDataProcessUnit; | ||
|
||
public class ZidAndFieldSelectorUnit<D, R, C> implements IDataProcessUnit<D, R, C> { |
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.
ColSelector...which takes iselector
@@ -0,0 +1,77 @@ | |||
package zingg.common.core.data; |
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.
rename to DataImpl or ZData
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.
updated
} | ||
|
||
@Override | ||
public InputType getInputType() { |
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.
no need for this
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.
removed
|
||
protected List<ZFrame<D, R, C>> data; | ||
|
||
public IDataImpl(List<ZFrame<D, R, C>> data) { |
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 another constructor which takes ZFrame<> data... so its easier to constructo this object at other places
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.
is there a way to keep thie list of data final?
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.
done
import zingg.common.client.ZFrame; | ||
import zingg.common.client.ZinggClientException; | ||
|
||
public interface IDataProcessUnit<D, R, C> { |
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.
call it IDataProcessor
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.
done
ZFrame<D,R,C> data = p.read(true, true, args.getNumPartitions(), true, args.getData()); | ||
return data; | ||
return new IDataImpl<D, R, C>(new ArrayList<>(List.of(data))); |
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 will go once oyu have the constructor in DataImpl/ZData
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.
updated
if (secondary == null) { | ||
secondary = zFrame; | ||
} else { | ||
secondary = secondary.union(zFrame); |
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.
no we should not be doing a union here. we should just add all the frames one after the other
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.
that gives us flexibility to do multi joins etc as needed in the downstream executors
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.
updated
@@ -0,0 +1,6 @@ | |||
package zingg.common.core.data; |
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
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.
removed
} | ||
|
||
@Override | ||
public long count() { |
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.
would be cool to save it once computed
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.
will check for the way
# Conflicts: # common/core/src/main/java/zingg/common/core/executor/blockingverifier/VerifyBlocking.java
No description provided.