public class IndexSchema
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
allowIntensiveDiskAccess |
java.util.List<AttributeGroupStore> |
attributeGroupStore |
static boolean |
DEFAULT_ALLOW_INTENSIVE_DISK_ACCESS |
java.util.List<FieldConfig> |
fieldConfig |
java.lang.String |
name |
Constructor and Description |
---|
IndexSchema() |
IndexSchema(IndexSchema o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this IndexSchema.
|
static IndexSchema |
fromString(java.lang.String s)
String representation of this IndexSchema.
|
java.util.List<AttributeGroupStore> |
getAttributeGroupStore() |
java.util.List<FieldConfig> |
getFieldConfig() |
java.util.Map<java.lang.String,FieldConfig> |
getFieldConfigAsMap()
Get the map of FieldConfig, indexed by fieldName
|
FieldConfig |
getFieldConfigByFieldName(java.lang.String _lookup)
Get the FieldConfig for which the fieldName matches _lookup
|
java.lang.String |
getName() |
boolean |
isAllowIntensiveDiskAccess()
Allows intensive operations like sorting or faceting to be performed on disk
(SSD should be preferred). |
IndexSchema |
makeCopy()
Creates and returns a deep copy of this IndexSchema.
|
static IndexSchema |
readFrom(java.io.InputStream is)
Read this IndexSchema from an XML fragment.
|
boolean |
removeFieldConfigByFieldName(java.lang.String _lookup)
Removes the FieldConfig for which the fieldName matches _lookup
|
void |
setAllowIntensiveDiskAccess(boolean allowIntensiveDiskAccess)
Allows intensive operations like sorting or faceting to be performed on disk
(SSD should be preferred). |
void |
setName(java.lang.String name) |
java.lang.String |
toString()
String representation of this IndexSchema.
|
IndexSchema |
withAllowIntensiveDiskAccess(boolean allowIntensiveDiskAccess) |
IndexSchema |
withAllowIntensiveDiskAccess(java.lang.Boolean allowIntensiveDiskAccess) |
IndexSchema |
withAttributeGroupStore(AttributeGroupStore... __values) |
IndexSchema |
withAttributeGroupStore(java.util.Collection<AttributeGroupStore> __values) |
IndexSchema |
withFieldConfig(java.util.Collection<FieldConfig> __values) |
IndexSchema |
withFieldConfig(FieldConfig... __values) |
IndexSchema |
withName(java.lang.String name) |
void |
writeTo(java.io.OutputStream os)
Write this IndexSchema as an XML fragment
|
public java.lang.String name
public java.util.List<FieldConfig> fieldConfig
public java.util.List<AttributeGroupStore> attributeGroupStore
public boolean allowIntensiveDiskAccess
public static final boolean DEFAULT_ALLOW_INTENSIVE_DISK_ACCESS
public IndexSchema()
public IndexSchema(IndexSchema o)
public void setName(java.lang.String name)
public java.lang.String getName()
public IndexSchema withName(java.lang.String name)
public java.util.List<FieldConfig> getFieldConfig()
public FieldConfig getFieldConfigByFieldName(java.lang.String _lookup)
public java.util.Map<java.lang.String,FieldConfig> getFieldConfigAsMap()
public boolean removeFieldConfigByFieldName(java.lang.String _lookup)
public IndexSchema withFieldConfig(FieldConfig... __values)
public IndexSchema withFieldConfig(java.util.Collection<FieldConfig> __values)
public java.util.List<AttributeGroupStore> getAttributeGroupStore()
public IndexSchema withAttributeGroupStore(AttributeGroupStore... __values)
public IndexSchema withAttributeGroupStore(java.util.Collection<AttributeGroupStore> __values)
public void setAllowIntensiveDiskAccess(boolean allowIntensiveDiskAccess)
public boolean isAllowIntensiveDiskAccess()
public IndexSchema withAllowIntensiveDiskAccess(boolean allowIntensiveDiskAccess)
public IndexSchema withAllowIntensiveDiskAccess(java.lang.Boolean allowIntensiveDiskAccess)
public IndexSchema makeCopy()
public static IndexSchema 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
javax.xml.bind.JAXBException
java.io.IOException
public static IndexSchema 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 java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.