public class HilbertIndexer extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
HilbertIndexer.HProcessFunction
Process function interface.
|
static class |
HilbertIndexer.RowProcessor
Be used as converting row field record to devoted bytes.
|
static class |
HilbertIndexer.TypeVisitor
Type Visitor to generate function map from row column to hilbert-index.
|
Constructor and Description |
---|
HilbertIndexer(RowType rowType,
List<String> orderColumns) |
Modifier and Type | Method and Description |
---|---|
Set<HilbertIndexer.RowProcessor> |
constructFunctionMap(List<DataField> fields) |
static byte[] |
hilbertCurvePosBytes(Long[] points) |
static HilbertIndexer.RowProcessor |
hmapColumnToCalculator(DataField field,
int index) |
byte[] |
index(InternalRow row) |
void |
open() |
public void open()
public byte[] index(InternalRow row)
public Set<HilbertIndexer.RowProcessor> constructFunctionMap(List<DataField> fields)
public static HilbertIndexer.RowProcessor hmapColumnToCalculator(DataField field, int index)
public static byte[] hilbertCurvePosBytes(Long[] points)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.