Package com.google.refine.browsing.util
Class ExpressionNominalValueGrouper
java.lang.Object
com.google.refine.browsing.util.ExpressionNominalValueGrouper
- All Implemented Interfaces:
RecordVisitor,RowVisitor
Visit matched rows or records and group them into facet choices based on the values computed from a given expression.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpressionNominalValueGrouper(Evaluable evaluable, String columnName, int cellIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all visit() calls.protected ObjectevalRow(Project project, int rowIndex, Row row, Properties bindings) getChoiceValueCount(Object choiceValue) protected voidprocessValue(Object value, int index) voidCalled before any visit() call.booleanbooleanprotected voidvisitRow(Project project, int rowIndex, Row row, Properties bindings, int index)
-
Field Details
-
_evaluable
-
_columnName
-
_cellIndex
protected final int _cellIndex -
choices
-
blankCount
public int blankCount -
errorCount
public int errorCount -
hasBlank
protected boolean hasBlank -
hasError
protected boolean hasError
-
-
Constructor Details
-
ExpressionNominalValueGrouper
-
-
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
-
visitRow
-
evalRow
-
processValue
-
getChoiceCountRowEvaluable
-
getChoiceValueCountMultiple
-
getChoiceValueCount
-