Class JsonIndexConfig
- java.lang.Object
-
- org.apache.pinot.spi.config.BaseJsonConfig
-
- org.apache.pinot.spi.config.table.JsonIndexConfig
-
- All Implemented Interfaces:
Serializable
public class JsonIndexConfig extends BaseJsonConfig
Configs related to the JSON index: - maxLevels: Max levels to flatten the json object (array is also counted as one level), non-positive value means unlimited - excludeArray: Whether to exclude array when flattening the object - disableCrossArrayUnnest: Whether to not unnest multiple arrays (unique combination of all elements) - includePaths: Only include the given paths, e.g. "$.a.b", "$.a.c[*]" (mutual exclusive with excludePaths). Paths under the included paths will be included, e.g. "$.a.b.c" will be included when "$.a.b" is configured to be included. - excludePaths: Exclude the given paths, e.g. "$.a.b", "$.a.c[*]" (mutual exclusive with includePaths). Paths under the excluded paths will also be excluded, e.g. "$.a.b.c" will be excluded when "$.a.b" is configured to be excluded. - excludeFields: Exclude the given fields, e.g. "b", "c", even if it is under the included paths.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonIndexConfig()
-
Method Summary
Modifier and Type Method Description Set<String>getExcludeFields()Set<String>getExcludePaths()Set<String>getIncludePaths()intgetMaxLevels()booleanisDisableCrossArrayUnnest()booleanisExcludeArray()voidsetDisableCrossArrayUnnest(boolean disableCrossArrayUnnest)voidsetExcludeArray(boolean excludeArray)voidsetExcludeFields(Set<String> excludeFields)voidsetExcludePaths(Set<String> excludePaths)voidsetIncludePaths(Set<String> includePaths)voidsetMaxLevels(int maxLevels)-
Methods inherited from class org.apache.pinot.spi.config.BaseJsonConfig
equals, hashCode, toJsonNode, toJsonString, toString
-
-
-
-
Method Detail
-
getMaxLevels
public int getMaxLevels()
-
setMaxLevels
public void setMaxLevels(int maxLevels)
-
isExcludeArray
public boolean isExcludeArray()
-
setExcludeArray
public void setExcludeArray(boolean excludeArray)
-
isDisableCrossArrayUnnest
public boolean isDisableCrossArrayUnnest()
-
setDisableCrossArrayUnnest
public void setDisableCrossArrayUnnest(boolean disableCrossArrayUnnest)
-
-