Class ExpressionTimeValueBinner

java.lang.Object
com.google.refine.browsing.util.ExpressionTimeValueBinner
All Implemented Interfaces:
RecordVisitor, RowVisitor

public class ExpressionTimeValueBinner extends Object implements RowVisitor, RecordVisitor
Visit matched rows or records and slot them into bins based on the date computed from a given expression.
  • Field Details

    • _rowEvaluable

      protected final RowEvaluable _rowEvaluable
    • _index

      protected final TimeBinIndex _index
    • bins

      public final int[] bins
    • timeCount

      public int timeCount
    • nonTimeCount

      public int nonTimeCount
    • blankCount

      public int blankCount
    • errorCount

      public int errorCount
    • hasError

      protected boolean hasError
    • hasBlank

      protected boolean hasBlank
    • hasTime

      protected boolean hasTime
    • hasNonTime

      protected boolean hasNonTime
  • Constructor Details

  • 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
    • resetFlags

      protected void resetFlags()
    • updateCounts

      protected void updateCounts()
    • processRow

      protected void processRow(Project project, int rowIndex, Row row, Properties bindings)
    • processValue

      protected void processValue(Object value)