public final class AppItem extends Schema<AppItem>
This schema is used to create indexes for application items.
It supports index fields appCategory, size, comment,
downloadCount, rating, 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 |
APP_CATEGORY |
Indicates the index field name of
appCategory. |
static String |
COMMENT |
Indicates the index field name of
comment. |
static String |
DOWNLOAD_COUNT |
Indicates the index field name of
downloadCount. |
static String |
RATING |
Indicates the index field name of
rating. |
static String |
SIZE |
Indicates the index field name of
size. |
| 构造器 | 说明 |
|---|---|
AppItem() |
A constructor used to create an
AppItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAppCategory() |
Obtains the value of the
appCategory index field. |
static List<IndexForm> |
getAppSchema() |
Obtains a list of index field attributes in this
AppItem object. |
String |
getComment() |
Obtains the value of the
comment index field. |
Long |
getDownloadCount() |
Obtains the value of the
downloadCount index field. |
Double |
getRating() |
Obtains the value of the
rating index field. |
Integer |
getSize() |
Obtains the value of the
size index field. |
AppItem |
setAppCategory(String appCategory) |
Sets the
appCategory index field. |
AppItem |
setComment(String comment) |
Sets the
comment index field. |
AppItem |
setDownloadCount(Long downloadCount) |
Sets the
downloadCount index field. |
AppItem |
setRating(Double rating) |
Sets the
rating index field. |
AppItem |
setSize(Integer size) |
Sets the
size 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 APP_CATEGORY
appCategory.public static final String COMMENT
comment.public static final String DOWNLOAD_COUNT
downloadCount.public static final String RATING
rating.public static List<IndexForm> getAppSchema()
AppItem object.public AppItem setAppCategory(String appCategory)
appCategory index field.
Attributes of this index field:
IndexForm.indexFieldName = "appCategory";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
appCategory - Indicates the application category.AppItem object.public AppItem setComment(String comment)
comment index field.
Attributes of this index field:
IndexForm.indexFieldName = "comment";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = false;
IndexForm.isSearch = true;
comment - Indicates the application comment.AppItem object.public AppItem setSize(Integer size)
size index field.
Attributes of this index field:
IndexForm.indexFieldName = "size";
IndexForm.indexType = IndexType.NO;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
size - Indicates the application size.AppItem object.public AppItem setRating(Double rating)
rating index field.
Attributes of this index field:
IndexForm.indexFieldName = "rating";
IndexForm.indexType = IndexType.DOUBLE;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
rating - Indicates the application rating.AppItem object.public AppItem setDownloadCount(Long downloadCount)
downloadCount index field.
Attributes of this index field:
IndexForm.indexFieldName = "downloadCount";
IndexForm.indexType = IndexType.LONG;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
downloadCount - Indicates the number of application downloads.AppItem object.public String getAppCategory()
appCategory index field.appCategory index field.public String getComment()
comment index field.comment index field.public Integer getSize()
size index field.size index field.public Double getRating()
rating index field.rating index field.public Long getDownloadCount()
downloadCount index field.downloadCount index field.