Github user denalex commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/1261#discussion_r124924223
  
    --- Diff: 
pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/examples/DummyAccessor.java 
---
    @@ -0,0 +1,46 @@
    +package org.apache.hawq.pxf.api.examples;
    +
    +import org.apache.hawq.pxf.api.OneRow;
    +import org.apache.hawq.pxf.api.ReadAccessor;
    +import org.apache.hawq.pxf.api.utilities.InputData;
    +import org.apache.hawq.pxf.api.utilities.Plugin;
    +import org.apache.commons.logging.Log;
    +import org.apache.commons.logging.LogFactory;
    +
    +public class DummyAccessor extends Plugin implements ReadAccessor {
    +    private static final Log LOG = LogFactory.getLog(DummyAccessor.class);
    +    private int rowNumber;
    +    private int fragmentNumber;
    +    public DummyAccessor(InputData metaData) {
    +        super(metaData);
    +    }
    +    @Override
    +    public boolean openForRead() throws Exception {
    +        /* fopen or similar */
    +        return true;
    +    }
    +    @Override
    +    public OneRow readNextObject() throws Exception {
    +        /* return next row , <key=fragmentNo.rowNo, 
val=rowNo,text,fragmentNo>*/
    --- End diff --
    
    not sure whether this is relevant here, but can we produce "X,Hello World 
X" string where X is a segment id ? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to