Package com.google.refine.browsing

Examples of com.google.refine.browsing.RowVisitor


        List<String> columnNames = new ArrayList<String>();
        List<Integer> rowIndices = new ArrayList<Integer>(project.rows.size());
        List<List<Serializable>> tuples = new ArrayList<List<Serializable>>(project.rows.size());
       
        FilteredRows filteredRows = engine.getAllFilteredRows();
        RowVisitor rowVisitor;
        if ("lengths".equals(_mode)) {
            rowVisitor = new ColumnSplitRowVisitor(column.getCellIndex(), columnNames, rowIndices, tuples) {
                @Override
                protected java.util.List<Serializable> split(String s) {
                    List<Serializable> results = new ArrayList<Serializable>(_fieldLengths.length + 1);
View Full Code Here


    @Override
    protected RowVisitor createRowVisitor(Project project, List<CellChange> cellChanges, long historyEntryID) throws Exception {
        Column column = project.columnModel.getColumnByName(_columnName);
       
        return new RowVisitor() {
            int                 cellIndex;
            List<CellChange>    cellChanges;
            Cell                previousCell;
           
            public RowVisitor init(int cellIndex, List<CellChange> cellChanges) {
View Full Code Here

    @Override
    protected RowVisitor createRowVisitor(final Project project, final List<CellChange> cellChanges, final long historyEntryID) throws Exception {
        Column column = project.columnModel.getColumnByName(_columnName);
        final int cellIndex = column != null ? column.getCellIndex() : -1;
       
        return new RowVisitor() {
            @Override
            public void start(Project project) {
                // nothing to do
            }
           
View Full Code Here

        TransposedNodeFactory   nodeFactory,
        int                     limit
    ) {
        Context rootContext = new Context(rootNode, null, null, limit);
       
        filteredRows.accept(project, new RowVisitor() {
            Context                 rootContext;
            Protograph              protograph;
            Node                    rootNode;
            TransposedNodeFactory   nodeFactory;
           
View Full Code Here

import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.HttpStatus;

public class Uploader extends Command {
    protected RowVisitor createRowVisitor(Project project, List<Object> values) throws Exception {
        return new RowVisitor() {
            List<Object> values;
           
            public RowVisitor init(List<Object> values) {
                this.values = values;
                return this;
View Full Code Here

TOP

Related Classes of com.google.refine.browsing.RowVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.