Package com.google.refine.browsing.util
Class ExpressionTimeValueBinner
java.lang.Object
com.google.refine.browsing.util.ExpressionTimeValueBinner
- All Implemented Interfaces:
RecordVisitor,RowVisitor
Visit matched rows or records and slot them into bins based on the date computed
from a given expression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TimeBinIndexprotected final RowEvaluablefinal int[]intintprotected booleanprotected booleanprotected booleanprotected booleanintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all visit() calls.protected voidprocessRow(Project project, int rowIndex, Row row, Properties bindings) protected voidprocessValue(Object value) protected voidvoidCalled before any visit() call.protected voidbooleanboolean
-
Field Details
-
_rowEvaluable
-
_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
-
ExpressionTimeValueBinner
-
-
Method Details
-
start
Description copied from interface:RowVisitorCalled before any visit() call.- Specified by:
startin interfaceRecordVisitor- Specified by:
startin interfaceRowVisitor
-
end
Description copied from interface:RowVisitorCalled after all visit() calls.- Specified by:
endin interfaceRecordVisitor- Specified by:
endin interfaceRowVisitor
-
visit
- Specified by:
visitin interfaceRowVisitor- Parameters:
project- projectrowIndex- zero-based row indexrow- row- Returns:
- true to abort visitation early - no further visit calls will be made
-
visit
- Specified by:
visitin interfaceRecordVisitor
-
resetFlags
protected void resetFlags() -
updateCounts
protected void updateCounts() -
processRow
-
processValue
-