public final class MutablePointsReaderUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
partition(int numDataDim,
int numIndexDim,
int maxDoc,
int splitDim,
int bytesPerDim,
int commonPrefixLen,
MutablePointValues reader,
int from,
int to,
int mid,
BytesRef scratch1,
BytesRef scratch2)
Partition points around
mid . |
static void |
sort(int maxDoc,
int packedBytesLength,
MutablePointValues reader,
int from,
int to)
Sort the given
MutablePointValues based on its packed value then doc ID. |
static void |
sortByDim(int numDataDim,
int numIndexDim,
int sortedDim,
int bytesPerDim,
int[] commonPrefixLengths,
MutablePointValues reader,
int from,
int to,
BytesRef scratch1,
BytesRef scratch2)
Sort points on the given dimension.
|
public static void sort(int maxDoc, int packedBytesLength, MutablePointValues reader, int from, int to)
MutablePointValues
based on its packed value then doc ID.public static void sortByDim(int numDataDim, int numIndexDim, int sortedDim, int bytesPerDim, int[] commonPrefixLengths, MutablePointValues reader, int from, int to, BytesRef scratch1, BytesRef scratch2)
public static void partition(int numDataDim, int numIndexDim, int maxDoc, int splitDim, int bytesPerDim, int commonPrefixLen, MutablePointValues reader, int from, int to, int mid, BytesRef scratch1, BytesRef scratch2)
mid
. All values on the left must be less
than or equal to it and all values on the right must be greater than or
equal to it.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.