public final class VideoItem extends Schema<VideoItem>
This schema is used to create indexes for video items.
It supports index fields actor, size, duration,
downloadCount, rating, watchDuration, 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 |
ACTOR |
Indicates the index field name of
actor. |
static String |
DOWNLOAD_COUNT |
Indicates the index field name of
downloadCount. |
static String |
DURATION |
Indicates the index field name of
duration. |
static String |
RATING |
Indicates the index field name of
rating. |
static String |
SIZE |
Indicates the index field name of
size. |
static String |
WATCH_DURATION |
Indicates the index field name of
watchDuration. |
| 构造器 | 说明 |
|---|---|
VideoItem() |
A constructor used to create a
VideoItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getActor() |
Obtains the value of the
actor index field. |
Long |
getDownloadCount() |
Obtains the value of the
downloadCount index field. |
Integer |
getDuration() |
Obtains the value of the
duration index field. |
Double |
getRating() |
Obtains the value of the
rating index field. |
Integer |
getSize() |
Obtains the value of the
size index field. |
static List<IndexForm> |
getVideoSchema() |
Obtains a list of index field attributes in this
VideoItem object. |
Integer |
getWatchDuration() |
Obtains the value of the
watchDuration index field. |
VideoItem |
setActor(String actor) |
Sets the
actor index field. |
VideoItem |
setDownloadCount(Long downloadCount) |
Sets the
downloadCount index field. |
VideoItem |
setDuration(Integer duration) |
Sets the
duration index field. |
VideoItem |
setRating(Double rating) |
Sets the
rating index field. |
VideoItem |
setSize(Integer size) |
Sets the
size index field. |
VideoItem |
setWatchDuration(Integer watchDuration) |
Sets the
watchDuration 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 ACTOR
actor.public static final String DOWNLOAD_COUNT
downloadCount.public static final String DURATION
duration.public static final String RATING
rating.public static List<IndexForm> getVideoSchema()
VideoItem object.public VideoItem setActor(String actor)
actor index field.
Attributes of this index field:
IndexForm.indexFieldName = "actor";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
actor - Indicates the actor of the video.VideoItem object.public VideoItem setDuration(Integer duration)
duration index field.
Attributes of this index field:
IndexForm.indexFieldName = "duration";
IndexForm.indexType = IndexType.NO;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
duration - Indicates the video duration in seconds.VideoItem object.public VideoItem setWatchDuration(Integer watchDuration)
watchDuration index field.
Attributes of this index field:
IndexForm.indexFieldName = "watchDuration";
IndexForm.indexType = IndexType.NO;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
watchDuration - Indicates the watched duration of the video.VideoItem object.public VideoItem 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 video rating.VideoItem object.public VideoItem 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 video downloads.VideoItem object.public VideoItem 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 video size.VideoItem object.public String getActor()
actor index field.actor index field.public Integer getDuration()
duration index field.duration index field.public Integer getWatchDuration()
watchDuration index field.watchDuration index field.public Double getRating()
rating index field.rating index field.public Long getDownloadCount()
downloadCount index field.downloadCount index field.public Integer getSize()
size index field.size index field.