java.lang.Object
org.apache.lucene.util.bkd.BKDConfig
Basic parameters for indexing points on the BKD tree.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intHow many bytes each value in each dimension takes.final intpackedBytesLength plus docID sizestatic final intDefault maximum number of point in each leaf blockstatic final intMaximum number of index dimensions (2 * max index dimensions)static final intMaximum number of index dimensionsfinal intmax points allowed on a Leaf blockfinal intHow many dimensions we are storing at the leaf (data) nodesfinal intHow many dimensions we are indexing in the internal nodesfinal intnumDataDims * bytesPerDimfinal intnumIndexDims * bytesPerDim -
Constructor Summary
ConstructorsConstructorDescriptionBKDConfig(int numDims, int numIndexDims, int bytesPerDim, int maxPointsInLeafNode) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidverifyParams(int numDims, int numIndexDims, int bytesPerDim, int maxPointsInLeafNode)
-
Field Details
-
DEFAULT_MAX_POINTS_IN_LEAF_NODE
public static final int DEFAULT_MAX_POINTS_IN_LEAF_NODEDefault maximum number of point in each leaf block- See Also:
-
MAX_DIMS
public static final int MAX_DIMSMaximum number of index dimensions (2 * max index dimensions)- See Also:
-
MAX_INDEX_DIMS
public static final int MAX_INDEX_DIMSMaximum number of index dimensions- See Also:
-
numDims
public final int numDimsHow many dimensions we are storing at the leaf (data) nodes -
numIndexDims
public final int numIndexDimsHow many dimensions we are indexing in the internal nodes -
bytesPerDim
public final int bytesPerDimHow many bytes each value in each dimension takes. -
maxPointsInLeafNode
public final int maxPointsInLeafNodemax points allowed on a Leaf block -
packedBytesLength
public final int packedBytesLengthnumDataDims * bytesPerDim -
packedIndexBytesLength
public final int packedIndexBytesLengthnumIndexDims * bytesPerDim -
bytesPerDoc
public final int bytesPerDocpackedBytesLength plus docID size
-
-
Constructor Details
-
BKDConfig
public BKDConfig(int numDims, int numIndexDims, int bytesPerDim, int maxPointsInLeafNode)
-
-
Method Details
-
verifyParams
private static void verifyParams(int numDims, int numIndexDims, int bytesPerDim, int maxPointsInLeafNode)
-