public final class NoticeItem extends Schema<NoticeItem>
This schema is used to create indexes for notice items.
It supports index fields noticeDate, location, content,
importance, latitude, longitude, repeatStatus,
noticeCategory, and all the fields in CommonItem.
Among these fields, identifier is mandatory and can be set via the
CommonItem#setIdentifier(String) method.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
CONTENT |
Indicates the index field name of
content. |
static String |
IMPORTANCE |
Indicates the index field name of
importance. |
static String |
LATITUDE |
Indicates the index field name of
latitude. |
static String |
LOCATION |
Indicates the index field name of
location. |
static String |
LONGITUDE |
Indicates the index field name of
longitude. |
static String |
NOTICE_CATEGORY |
Indicates the index field name of
noticeCategory. |
static String |
NOTICE_DATE |
Indicates the index field name of
noticeDate. |
static String |
REPEAT_STATUS |
Indicates the index field name of
repaetStatus. |
| 构造器 | 说明 |
|---|---|
NoticeItem() |
A constructor used to create a
NoticeItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getContent() |
Obtains the value of the
content index field. |
String |
getImportance() |
Obtains the value of the
importance index field. |
Double |
getLatitude() |
Obtains the value of the
latitude index field. |
String |
getLocation() |
Obtains the value of the
location index field. |
Double |
getLongitude() |
Obtains the value of the
longitude index field. |
String |
getNoticeCategory() |
Obtains the value of the
noticeCategory index field. |
Long |
getNoticeDate() |
Obtains the value of the
noticeDate index field. |
static List<IndexForm> |
getNoticeSchema() |
Obtains a list of index field attributes in this
NoticeItem object. |
String |
getRepeatStatus() |
Obtains the value of the
repeatStatus index field. |
NoticeItem |
setContent(String content) |
set content.
|
NoticeItem |
setImportance(String importance) |
Sets the
importance index field. |
NoticeItem |
setLatitude(Double latitude) |
Sets the
latitude index field. |
NoticeItem |
setLocation(String location) |
Sets the
location index field. |
NoticeItem |
setLongitude(Double longitude) |
Sets the
longitude index field. |
NoticeItem |
setNoticeCategory(String noticeCategory) |
Sets the
noticeCategory index field. |
NoticeItem |
setNoticeDate(Long noticeDate) |
Sets the
noticeDate index field. |
NoticeItem |
setRepeatStatus(String repeatStatus) |
Sets the
repeatStatus index field. |
clear, get, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValues, isEmpty, put, put, put, put, put, remove, setValues, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlternateName, getCategory, getDateCreate, getDescription, getIdentifier, getKeywords, getName, getPotentialAction, getReserved1, getReserved2, getSubtitle, getThumbnailUrl, getTitle, getUrl, setAlternateName, setCategory, setDateCreate, setDescription, setIdentifier, setKeywords, setName, setPotentialAction, setReserved1, setReserved2, setSubtitle, setThumbnailUrl, setTitle, setUrlpublic static final String CONTENT
content.public static final String IMPORTANCE
importance.public static final String LATITUDE
latitude.public static final String LOCATION
location.public static final String LONGITUDE
longitude.public static final String NOTICE_CATEGORY
noticeCategory.public static final String NOTICE_DATE
noticeDate.public NoticeItem()
NoticeItem instance.public static List<IndexForm> getNoticeSchema()
NoticeItem object.public NoticeItem setNoticeCategory(String noticeCategory)
noticeCategory index field.
Attributes of this index field:
IndexForm.indexFieldName = "noticeCategory";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
noticeCategory - Indicates the notice category to set.NoticeItem object.public NoticeItem setContent(String content)
content - contentpublic NoticeItem setNoticeDate(Long noticeDate)
noticeDate index field.
Attributes of this index field:
IndexForm.indexFieldName = "noticeDate";
IndexForm.indexType = IndexType.LONG;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
noticeDate - Indicates the notice date to set.NoticeItem object.public NoticeItem setRepeatStatus(String repeatStatus)
repeatStatus index field.
Attributes of this index field:
IndexForm.indexFieldName = "repeatStatus";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
repeatStatus - Indicates the repeat status to set.NoticeItem object.public NoticeItem setImportance(String importance)
importance index field.
Attributes of this index field:
IndexForm.indexFieldName = "importance";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
importance - Indicates the importance to set.NoticeItem object.public NoticeItem setLocation(String location)
location index field.
Attributes of this index field:
IndexForm.indexFieldName = "location";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
location - Indicates the location to set.NoticeItem object.public NoticeItem setLongitude(Double longitude)
longitude index field.
Attributes of this index field:
IndexForm.indexFieldName = "longitude";
IndexForm.indexType = IndexType.DOUBLE;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
longitude - Indicates the longitude to set.NoticeItem object.public NoticeItem setLatitude(Double latitude)
latitude index field.
Attributes of this index field:
IndexForm.indexFieldName = "latitude";
IndexForm.indexType = IndexType.DOUBLE;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
latitude - Indicates the latitude to set.NoticeItem object.public String getNoticeCategory()
noticeCategory index field.noticeCategory index field.public String getContent()
content index field.content index field.public Long getNoticeDate()
noticeDate index field.noticeDate index field.public String getRepeatStatus()
repeatStatus index field.repeatStatus index field.public String getImportance()
importance index field.importance index field.public String getLocation()
location index field.location index field.public Double getLatitude()
latitude index field.latitude index field.public Double getLongitude()
longitude index field.longitude index field.