public class ValueFieldConfig extends SortableFieldConfig implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ValueFieldConfig.Implementation |
static interface |
ValueFieldConfig.Transformer<T> |
static interface |
ValueFieldConfig.Visitor |
FieldConfig.FromDataModel
Modifier and Type | Field and Description |
---|---|
boolean |
bloomFilter |
static boolean |
DEFAULT_BLOOM_FILTER |
static int |
DEFAULT_HASH_THRESHOLD |
static boolean |
DEFAULT_IGNORE_PRESENT_BIT |
static java.lang.String |
DEFAULT_IMPLEMENTATION |
static int |
DEFAULT_MIN_MEMBER_NB_BITS |
static boolean |
DEFAULT_OPTIMIZE_LISTS_FOR_PATTERN_SEARCH |
int |
hashThreshold |
boolean |
ignorePresentBit |
java.lang.String |
implementation |
int |
minMemberNbBits |
boolean |
optimizeListsForPatternSearch |
DEFAULT_DELTA_REF_ENCODE_MULTIVALUED_VALUES, DEFAULT_SORT_MULTIVALUED_VALUES, deltaRefEncodeMultivaluedValues, sortMultivaluedValues
DEFAULT_MULTI_CONTEXT, DEFAULT_RAM_BASED, multiContext, ramBased
dataModelClass, dataModelProperty, dataModelState, DEFAULT_MULTIVALUED, DEFAULT_RETRIEVABLE, DEFAULT_SEARCHABLE, DEFAULT_VERSION, fieldName, fromDataModel, listsEncoderConfig, multivalued, retrievable, searchable, version
Constructor and Description |
---|
ValueFieldConfig() |
ValueFieldConfig(ValueFieldConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(FieldConfig.Transformer<T> transformer,
T[] t) |
void |
accept(FieldConfig.Visitor visitor) |
<T> T |
accept(SortableFieldConfig.Transformer<T> transformer,
T[] t) |
void |
accept(SortableFieldConfig.Visitor visitor) |
<T> T |
accept(StandardFieldConfig.Transformer<T> transformer,
T[] t) |
void |
accept(StandardFieldConfig.Visitor visitor) |
<T> T |
accept(ValueFieldConfig.Transformer<T> transformer,
T[] t) |
void |
accept(ValueFieldConfig.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ValueFieldConfig.
|
static ValueFieldConfig |
fromString(java.lang.String s)
String representation of this ValueFieldConfig.
|
int |
getHashThreshold()
Stores a hash value in field dictionary instead of the original data if value length is greater than this threshold.
|
java.lang.String |
getImplementation()
Advanced configuration.
|
ValueFieldConfig.Implementation |
getImplementationAsEnum()
Advanced configuration.
|
int |
getMinMemberNbBits()
Min number of bits for attr part for value field.
|
static boolean |
isA(java.lang.String str,
ValueFieldConfig.Implementation item) |
boolean |
isBloomFilter()
Activates a Bloom filter per slot.
|
boolean |
isIgnorePresentBit()
Uses and loads the present bit.
|
static boolean |
isOneOf(java.lang.String str,
ValueFieldConfig.Implementation... items) |
boolean |
isOptimizeListsForPatternSearch()
speed up pattern search by reducing the number of opened inverted lists at the expense of indexing time and disk space.
|
ValueFieldConfig |
makeCopy()
Creates and returns a deep copy of this ValueFieldConfig.
|
static ValueFieldConfig |
readFrom(java.io.InputStream is)
Read this ValueFieldConfig from an XML fragment.
|
void |
setBloomFilter(boolean bloomFilter)
Activates a Bloom filter per slot.
|
void |
setHashThreshold(int hashThreshold)
Stores a hash value in field dictionary instead of the original data if value length is greater than this threshold.
|
void |
setIgnorePresentBit(boolean ignorePresentBit)
Uses and loads the present bit.
|
void |
setImplementation(java.lang.String implementation)
Advanced configuration.
|
void |
setImplementation(ValueFieldConfig.Implementation item)
Advanced configuration.
|
void |
setMinMemberNbBits(int minMemberNbBits)
Min number of bits for attr part for value field.
|
void |
setOptimizeListsForPatternSearch(boolean optimizeListsForPatternSearch)
speed up pattern search by reducing the number of opened inverted lists at the expense of indexing time and disk space.
|
java.lang.String |
toString()
String representation of this ValueFieldConfig.
|
ValueFieldConfig |
withBloomFilter(boolean bloomFilter) |
ValueFieldConfig |
withBloomFilter(java.lang.Boolean bloomFilter) |
ValueFieldConfig |
withDataModelClass(java.lang.String dataModelClass) |
ValueFieldConfig |
withDataModelProperty(java.lang.String dataModelProperty) |
ValueFieldConfig |
withDataModelState(java.lang.String dataModelState) |
ValueFieldConfig |
withDeltaRefEncodeMultivaluedValues(boolean deltaRefEncodeMultivaluedValues) |
ValueFieldConfig |
withDeltaRefEncodeMultivaluedValues(java.lang.Boolean deltaRefEncodeMultivaluedValues) |
ValueFieldConfig |
withFieldName(java.lang.String fieldName) |
ValueFieldConfig |
withFromDataModel(FieldConfig fromDataModel) |
ValueFieldConfig |
withHashThreshold(int hashThreshold) |
ValueFieldConfig |
withHashThreshold(java.lang.Integer hashThreshold) |
ValueFieldConfig |
withIgnorePresentBit(boolean ignorePresentBit) |
ValueFieldConfig |
withIgnorePresentBit(java.lang.Boolean ignorePresentBit) |
ValueFieldConfig |
withImplementation(java.lang.String implementation) |
ValueFieldConfig |
withListsEncoderConfig(ListsEncoderConfig listsEncoderConfig) |
ValueFieldConfig |
withMinMemberNbBits(int minMemberNbBits) |
ValueFieldConfig |
withMinMemberNbBits(java.lang.Integer minMemberNbBits) |
ValueFieldConfig |
withMultiContext(boolean multiContext) |
ValueFieldConfig |
withMultiContext(java.lang.Boolean multiContext) |
ValueFieldConfig |
withMultivalued(boolean multivalued) |
ValueFieldConfig |
withMultivalued(java.lang.Boolean multivalued) |
ValueFieldConfig |
withOptimizeListsForPatternSearch(boolean optimizeListsForPatternSearch) |
ValueFieldConfig |
withOptimizeListsForPatternSearch(java.lang.Boolean optimizeListsForPatternSearch) |
ValueFieldConfig |
withRamBased(boolean ramBased) |
ValueFieldConfig |
withRamBased(java.lang.Boolean ramBased) |
ValueFieldConfig |
withRetrievable(boolean retrievable) |
ValueFieldConfig |
withRetrievable(java.lang.Boolean retrievable) |
ValueFieldConfig |
withSearchable(boolean searchable) |
ValueFieldConfig |
withSearchable(java.lang.Boolean searchable) |
ValueFieldConfig |
withSortMultivaluedValues(boolean sortMultivaluedValues) |
ValueFieldConfig |
withSortMultivaluedValues(java.lang.Boolean sortMultivaluedValues) |
ValueFieldConfig |
withVersion(int version) |
ValueFieldConfig |
withVersion(java.lang.Integer version) |
void |
writeTo(java.io.OutputStream os)
Write this ValueFieldConfig as an XML fragment
|
isDeltaRefEncodeMultivaluedValues, isSortMultivaluedValues, setDeltaRefEncodeMultivaluedValues, setSortMultivaluedValues
isMultiContext, isRamBased, setMultiContext, setRamBased
getDataModelClass, getDataModelProperty, getDataModelState, getFieldName, getFromDataModel, getListsEncoderConfig, getVersion, isMultivalued, isRetrievable, isSearchable, setDataModelClass, setDataModelProperty, setDataModelState, setFieldName, setFromDataModel, setListsEncoderConfig, setMultivalued, setRetrievable, setSearchable, setVersion
public boolean ignorePresentBit
public static final boolean DEFAULT_IGNORE_PRESENT_BIT
public int minMemberNbBits
public static final int DEFAULT_MIN_MEMBER_NB_BITS
public boolean bloomFilter
public static final boolean DEFAULT_BLOOM_FILTER
public int hashThreshold
public static final int DEFAULT_HASH_THRESHOLD
public java.lang.String implementation
public static final java.lang.String DEFAULT_IMPLEMENTATION
public boolean optimizeListsForPatternSearch
public static final boolean DEFAULT_OPTIMIZE_LISTS_FOR_PATTERN_SEARCH
public ValueFieldConfig()
public ValueFieldConfig(ValueFieldConfig o)
public static boolean isA(java.lang.String str, ValueFieldConfig.Implementation item)
public static boolean isOneOf(java.lang.String str, ValueFieldConfig.Implementation... items)
public void setImplementation(ValueFieldConfig.Implementation item)
public ValueFieldConfig.Implementation getImplementationAsEnum()
public ValueFieldConfig withDeltaRefEncodeMultivaluedValues(boolean deltaRefEncodeMultivaluedValues)
withDeltaRefEncodeMultivaluedValues
in class SortableFieldConfig
public ValueFieldConfig withDeltaRefEncodeMultivaluedValues(java.lang.Boolean deltaRefEncodeMultivaluedValues)
withDeltaRefEncodeMultivaluedValues
in class SortableFieldConfig
public ValueFieldConfig withSortMultivaluedValues(boolean sortMultivaluedValues)
withSortMultivaluedValues
in class SortableFieldConfig
public ValueFieldConfig withSortMultivaluedValues(java.lang.Boolean sortMultivaluedValues)
withSortMultivaluedValues
in class SortableFieldConfig
public ValueFieldConfig withRamBased(boolean ramBased)
withRamBased
in class SortableFieldConfig
public ValueFieldConfig withRamBased(java.lang.Boolean ramBased)
withRamBased
in class SortableFieldConfig
public ValueFieldConfig withMultiContext(boolean multiContext)
withMultiContext
in class SortableFieldConfig
public ValueFieldConfig withMultiContext(java.lang.Boolean multiContext)
withMultiContext
in class SortableFieldConfig
public ValueFieldConfig withFieldName(java.lang.String fieldName)
withFieldName
in class SortableFieldConfig
public ValueFieldConfig withSearchable(boolean searchable)
withSearchable
in class SortableFieldConfig
public ValueFieldConfig withSearchable(java.lang.Boolean searchable)
withSearchable
in class SortableFieldConfig
public ValueFieldConfig withRetrievable(boolean retrievable)
withRetrievable
in class SortableFieldConfig
public ValueFieldConfig withRetrievable(java.lang.Boolean retrievable)
withRetrievable
in class SortableFieldConfig
public ValueFieldConfig withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SortableFieldConfig
public ValueFieldConfig withFromDataModel(FieldConfig fromDataModel)
withFromDataModel
in class SortableFieldConfig
public ValueFieldConfig withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SortableFieldConfig
public ValueFieldConfig withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SortableFieldConfig
public ValueFieldConfig withMultivalued(boolean multivalued)
withMultivalued
in class SortableFieldConfig
public ValueFieldConfig withMultivalued(java.lang.Boolean multivalued)
withMultivalued
in class SortableFieldConfig
public ValueFieldConfig withVersion(int version)
withVersion
in class SortableFieldConfig
public ValueFieldConfig withVersion(java.lang.Integer version)
withVersion
in class SortableFieldConfig
public ValueFieldConfig withListsEncoderConfig(ListsEncoderConfig listsEncoderConfig)
withListsEncoderConfig
in class SortableFieldConfig
public void setIgnorePresentBit(boolean ignorePresentBit)
public boolean isIgnorePresentBit()
public ValueFieldConfig withIgnorePresentBit(boolean ignorePresentBit)
public ValueFieldConfig withIgnorePresentBit(java.lang.Boolean ignorePresentBit)
public void setMinMemberNbBits(int minMemberNbBits)
public int getMinMemberNbBits()
public ValueFieldConfig withMinMemberNbBits(int minMemberNbBits)
public ValueFieldConfig withMinMemberNbBits(java.lang.Integer minMemberNbBits)
public void setBloomFilter(boolean bloomFilter)
public boolean isBloomFilter()
public ValueFieldConfig withBloomFilter(boolean bloomFilter)
public ValueFieldConfig withBloomFilter(java.lang.Boolean bloomFilter)
public void setHashThreshold(int hashThreshold)
public int getHashThreshold()
public ValueFieldConfig withHashThreshold(int hashThreshold)
public ValueFieldConfig withHashThreshold(java.lang.Integer hashThreshold)
public void setImplementation(java.lang.String implementation)
public java.lang.String getImplementation()
public ValueFieldConfig withImplementation(java.lang.String implementation)
public void setOptimizeListsForPatternSearch(boolean optimizeListsForPatternSearch)
public boolean isOptimizeListsForPatternSearch()
public ValueFieldConfig withOptimizeListsForPatternSearch(boolean optimizeListsForPatternSearch)
public ValueFieldConfig withOptimizeListsForPatternSearch(java.lang.Boolean optimizeListsForPatternSearch)
public ValueFieldConfig makeCopy()
makeCopy
in class SortableFieldConfig
public static ValueFieldConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SortableFieldConfig
javax.xml.bind.JAXBException
java.io.IOException
public static ValueFieldConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SortableFieldConfig
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SortableFieldConfig
com.exalead.util.TypedException
public void accept(ValueFieldConfig.Visitor visitor) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public void accept(SortableFieldConfig.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SortableFieldConfig
com.exalead.util.TypedException
public void accept(StandardFieldConfig.Visitor visitor) throws com.exalead.util.TypedException
accept
in class StandardFieldConfig
com.exalead.util.TypedException
public void accept(FieldConfig.Visitor visitor) throws com.exalead.util.TypedException
accept
in class FieldConfig
com.exalead.util.TypedException
public <T> T accept(ValueFieldConfig.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public <T> T accept(SortableFieldConfig.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SortableFieldConfig
com.exalead.util.TypedException
public <T> T accept(StandardFieldConfig.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class StandardFieldConfig
com.exalead.util.TypedException
public <T> T accept(FieldConfig.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class FieldConfig
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.