Package com.atlassian.jira.search
Interface Schema
- All Known Subinterfaces:
IndexSchema
- All Known Implementing Classes:
DefaultIndexSchema
,DefaultSchema
@PublicSpi
public interface Schema
A schema
- Since:
- 10.4
-
Method Summary
-
Method Details
-
accept
-
getFields
Collection<Field> getFields()- Returns:
- the fields defined in the index schema excluding id and version.
-
isDefined
- Returns:
- whether the given field is defined in this index schema.
-
isDefined
- Returns:
- whether the given field name is defined in this index schema.
-
getField
Obtains a field using name.- Parameters:
name
- field name- Returns:
Optional
containing the field if it exists, empty otherwise
-