public class Dimension extends Attribute
Dimension
represents the definition of a dimension in the MDEX Engine.Constructor and Description |
---|
Dimension(Dimension other)
Creates a Dimension which is a copy of the given Dimension.
|
Dimension(String attributeName)
Creates a Dimension with given name.
|
Modifier and Type | Method and Description |
---|---|
Long |
getDisplayOrder()
Gets the display order for this dimension.
|
MultiSelectType |
getMultiSelectType()
Gets a dimension's multi-select type, or null if the type is not set.
|
RangeComparisonType |
getRangeComparisonType()
Gets a dimension's range comparison type, or null if the type is not set.
|
Collection<String> |
getSourcePropertyNames()
Gets the source property names that are used when data records are processed.
|
Boolean |
isAutogen()
Gets a dimension's autogen value.
|
Boolean |
isHierarchicalDimensionSearchEnabled()
Indicates whether hierarchical dimension search is enabled for this dimension.
|
Boolean |
isHierarchicalRecordSearchEnabled()
Indicates whether hierarchical record search is enabled for this dimension.
|
Boolean |
isRecordSearchEnabled()
Indicates whether record search is enabled for this dimension.
|
Boolean |
isWildcardEnabledInRecordSearch()
Indicates whether wildcard search is enabled for record search for this dimension.
|
void |
setAutogen(Boolean isAutogen)
Sets whether or not to auto-generate dimension values for this dimension.
|
void |
setDisplayOrder(Long displayOrder)
Specifies the display order of a dimension
relative to other dimensions in refinement results.
|
void |
setHierarchicalDimensionSearchEnabled(Boolean isHierarchicalDimensionSearchEnabled)
Enables hierarchical dimension search for this dimension.
|
void |
setHierarchicalRecordSearchEnabled(Boolean isHierarchicalRecordSearchEnabled)
Enables hierarchical record search for this dimension.
|
void |
setMultiSelectType(MultiSelectType multiSelectType)
Sets the multi-select type to use for this dimension.
|
void |
setRangeComparisonType(RangeComparisonType rangeComparisonType)
Sets the data type to use for range dimension mapping.
|
void |
setRecordSearchEnabled(Boolean isRecordSearchEnabled)
Enables record search for this dimension.
|
void |
setSourcePropertyNames(Collection<String> sourcePropertyNames)
Allows the dimension to be populated from specific source properties
when data records are processed.
|
void |
setWildcardEnabledInRecordSearch(Boolean isWildcardEnabledInRecordSearch)
Enables wildcard search for record search for this dimension.
|
getAttributeName
equals, getMergeAction, hashCode, isEnabled, toString
public Dimension(String attributeName)
attributeName
- name of dimension.public Dimension(Dimension other)
other
- public void setRangeComparisonType(RangeComparisonType rangeComparisonType)
rangeComparisonType
- the type to usepublic void setAutogen(Boolean isAutogen)
isAutogen
- true to auto-generate dimension values for this dimension, false otherwise.public void setMultiSelectType(MultiSelectType multiSelectType)
multiSelectType
- the type to usepublic void setDisplayOrder(Long displayOrder)
displayOrder
- the display order for this dimensionpublic void setSourcePropertyNames(Collection<String> sourcePropertyNames)
If no source property name is specified for a given dimension, the default behavior is to map the dimension using a source property of the same name as the dimension's name.
If the source property name field is specified but with no names (i.e. a zero-length list of values), the given dimension is not mapped at all. This allows the dimension to continue to be defined, but to not ever have any data mapped to it.
If the source property name field is specified with a single name, that name is used to identify source properties whose values should be mapped to the given dimension. This takes the place of the source property with the matching name.
If the source property name field is specified with multiple names, then each source property whose name appears in this list has its values mapped to the given dimension.
Note that this permits a many-to-many mapping: a given dimension may get values from many source properties on an input data record, and the same source property may be used to provide values to more than one attribute.
sourcePropertyNames
- public void setRecordSearchEnabled(Boolean isRecordSearchEnabled)
isRecordSearchEnabled
- public void setWildcardEnabledInRecordSearch(Boolean isWildcardEnabledInRecordSearch)
isWildcardEnabledInRecordSearch
- public void setHierarchicalRecordSearchEnabled(Boolean isHierarchicalRecordSearchEnabled)
isHierarchicalRecordSearchEnabled
- public void setHierarchicalDimensionSearchEnabled(Boolean isHierarchicalDimensionSearchEnabled)
isHierarchicalDimensionSearchEnabled
- public RangeComparisonType getRangeComparisonType()
public MultiSelectType getMultiSelectType()
public Long getDisplayOrder()
public Boolean isAutogen()
public Collection<String> getSourcePropertyNames()
public Boolean isRecordSearchEnabled()
public Boolean isWildcardEnabledInRecordSearch()
public Boolean isHierarchicalRecordSearchEnabled()
public Boolean isHierarchicalDimensionSearchEnabled()
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.