public abstract class SingleBatchSorterTemplate extends Object implements SingleBatchSorter, org.apache.hadoop.util.IndexedSortable
TEMPLATE_DEFINITION| Constructor and Description |
|---|
SingleBatchSorterTemplate() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int leftIndex,
int rightIndex) |
abstract int |
doEval(char leftIndex,
char rightIndex) |
abstract void |
doSetup(FragmentContext context,
VectorAccessible incoming,
RecordBatch outgoing) |
void |
setup(FragmentContext context,
SelectionVector2 vector2,
VectorAccessible incoming) |
void |
sort(SelectionVector2 vector2) |
void |
swap(int sv0,
int sv1) |
String |
toString() |
public void setup(FragmentContext context, SelectionVector2 vector2, VectorAccessible incoming) throws SchemaChangeException
setup in interface SingleBatchSorterSchemaChangeExceptionpublic void sort(SelectionVector2 vector2)
sort in interface SingleBatchSorterpublic void swap(int sv0,
int sv1)
swap in interface org.apache.hadoop.util.IndexedSortablepublic int compare(int leftIndex,
int rightIndex)
compare in interface org.apache.hadoop.util.IndexedSortablepublic abstract void doSetup(@Named(value="context")
FragmentContext context,
@Named(value="incoming")
VectorAccessible incoming,
@Named(value="outgoing")
RecordBatch outgoing)
throws SchemaChangeException
SchemaChangeExceptionpublic abstract int doEval(@Named(value="leftIndex")
char leftIndex,
@Named(value="rightIndex")
char rightIndex)
throws SchemaChangeException
SchemaChangeExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.