Package com.google.refine.sorting
Class SortingRowVisitor
java.lang.Object
com.google.refine.sorting.BaseSorter
com.google.refine.sorting.SortingRowVisitor
- All Implemented Interfaces:
RowVisitor
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.refine.sorting.BaseSorter
BaseSorter.ComparatorWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<SortingRowVisitor.IndexedRow>protected final RowVisitorFields inherited from class com.google.refine.sorting.BaseSorter
_comparatorWrappers, _criteria, _keyMakers, _keys -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.refine.sorting.BaseSorter
compare, hasCriteria, initializeFromConfig, makeKeys
-
Field Details
-
_visitor
-
_indexedRows
-
-
Constructor Details
-
SortingRowVisitor
-
-
Method Details
-
start
Description copied from interface:RowVisitorCalled before any visit() call.- Specified by:
startin interfaceRowVisitor
-
end
Description copied from interface:RowVisitorCalled after all visit() calls.- 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
-
makeKey
protected Object makeKey(Project project, Criterion.KeyMaker keyMaker, Criterion c, Object o, int index) - Specified by:
makeKeyin classBaseSorter
-