Class Template.RowWritingVisitor

java.lang.Object
com.google.refine.templating.Template.RowWritingVisitor
All Implemented Interfaces:
RecordVisitor, RowVisitor
Enclosing class:
Template

protected class Template.RowWritingVisitor extends Object implements RowVisitor, RecordVisitor
  • Field Details

    • limit

      protected final int limit
    • writer

      protected final Writer writer
    • bindings

      protected Properties bindings
    • total

      public int total
    • totalRows

      public int totalRows
  • Constructor Details

    • RowWritingVisitor

      public RowWritingVisitor(Writer writer, int limit)
  • Method Details

    • start

      public void start(Project project)
      Description copied from interface: RowVisitor
      Called before any visit() call.
      Specified by:
      start in interface RecordVisitor
      Specified by:
      start in interface RowVisitor
    • end

      public void end(Project project)
      Description copied from interface: RowVisitor
      Called after all visit() calls.
      Specified by:
      end in interface RecordVisitor
      Specified by:
      end in interface RowVisitor
    • visit

      public boolean visit(Project project, int rowIndex, Row row)
      Specified by:
      visit in interface RowVisitor
      Parameters:
      project - project
      rowIndex - zero-based row index
      row - row
      Returns:
      true to abort visitation early - no further visit calls will be made
    • visit

      public boolean visit(Project project, Record record)
      Specified by:
      visit in interface RecordVisitor
    • writeValue

      protected void writeValue(Object v) throws IOException
      Throws:
      IOException
    • internalVisit

      public boolean internalVisit(Project project, int rowIndex, Row row)
      This method is modified for issue 3955 Issue link: https://github.com/OpenRefine/OpenRefine/issues/3955 The modification is to use the new variable totalRows instead of total
    • internalVisit

      protected boolean internalVisit(Project project, Record record)