public final class PhotoItem extends Schema<PhotoItem>
This schema is used to create indexes for photo items.
It supports index fields size, height, width,
photoCategory, shootingMode, shooting location (represented by
country, province, city, district, road,
latitude, and longitute), shootingDate, tag,
feature, ocrText, holiday, 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 |
CITY |
Indicates the index field name of
city. |
static String |
COUNTRY |
Indicates the index field name of
country. |
static String |
DISTRICT |
Indicates the index field name of
district. |
static String |
FEATURE |
Indicates the index field name of
feature. |
static String |
HEIGHT |
Indicates the index field name of
height. |
static String |
HOLIDAY |
Indicates the index field name of
holiday. |
static String |
LATITUDE |
Indicates the index field name of
latitude. |
static String |
LONGITUDE |
Indicates the index field name of
longitude. |
static String |
OCR_TEXT |
Indicates the index field name of
ocrText. |
static String |
PHOTO_CATEGORY |
Indicates the index field name of
photoCategory. |
static String |
PROVINCE |
Indicates the index field name of
province. |
static String |
ROAD |
Indicates the index field name of
road. |
static String |
SHOOTING_DATE |
Indicates the index field name of
shootingDate. |
static String |
SHOOTING_MODE |
Indicates the index field name of
shootingMode. |
static String |
SIZE |
Indicates the index field name of
size. |
static String |
TAG |
Indicates the index field name of
tag. |
static String |
WIDTH |
Indicates the index field name of
width. |
| 构造器 | 说明 |
|---|---|
PhotoItem() |
A constructor used to create a
PhotoItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getCity() |
Obtains the city where the photo is taken.
|
String |
getCountry() |
Obtains the country/region where the photo is taken.
|
String |
getDistrict() |
Obtains the city district where the photo is taken.
|
String |
getFeature() |
Obtains the feature of the photo.
|
Integer |
getHeight() |
Obtains the height of the photo.
|
String |
getHoliday() |
Obtains the holiday information about the photo.
|
Double |
getLatitude() |
Obtains the latitude of the shooting location.
|
Double |
getLongitude() |
Obtains the longitude of the shooting location.
|
String |
getOcrText() |
Obtains the text recognized within the photo.
|
String |
getPhotoCategory() |
Obtains the format (such as JPG) of the photo.
|
static List<IndexForm> |
getPhotoSchema() |
Obtains a list of index field attributes in this
PhotoItem object. |
String |
getProvince() |
Obtains the first-level administrative division (such as a province or state) where the photo is taken.
|
String |
getRoad() |
Obtains the road where the photo is taken.
|
String |
getShootingDate() |
Obtains the time when the photo is taken.
|
String |
getShootingMode() |
Obtains the shooting mode.
|
Integer |
getSize() |
Obtains the size of the photo.
|
String |
getTag() |
Obtains the tag of the photo.
|
Integer |
getWidth() |
Obtains the width of the photo.
|
PhotoItem |
setCity(String city) |
Sets the
city index field. |
PhotoItem |
setCountry(String country) |
Sets the
country index field. |
PhotoItem |
setDistrict(String district) |
Sets the
district index field. |
PhotoItem |
setFeature(String feature) |
Sets the
feature index field. |
PhotoItem |
setHeight(Integer height) |
Sets the
height index field. |
PhotoItem |
setHoliday(String holiday) |
Sets the
holiday index field. |
PhotoItem |
setLatitude(Double latitude) |
Sets the
latitude index field. |
PhotoItem |
setLongitude(Double longitude) |
Sets the
longitude index field. |
PhotoItem |
setOcrText(String ocrText) |
Sets the
ocrText index field. |
PhotoItem |
setPhotoCategory(String photoCategory) |
Sets the
photoCategory index field. |
PhotoItem |
setProvince(String province) |
Sets the
province index field. |
PhotoItem |
setRoad(String road) |
Sets the
road index field. |
PhotoItem |
setShootingDate(String shootingDate) |
Sets the
shootingDate index field. |
PhotoItem |
setShootingMode(String shootingMode) |
Sets the
shootingMode index field. |
PhotoItem |
setSize(Integer size) |
Sets the
size index field. |
PhotoItem |
setTag(String tag) |
Sets the
tag index field. |
PhotoItem |
setWidth(Integer width) |
Sets the
width 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 COUNTRY
country.public static final String DISTRICT
district.public static final String FEATURE
feature.public static final String HEIGHT
height.public static final String HOLIDAY
holiday.public static final String LATITUDE
latitude.public static final String LONGITUDE
longitude.public static final String OCR_TEXT
ocrText.public static final String PHOTO_CATEGORY
photoCategory.public static final String PROVINCE
province.public static final String SHOOTING_DATE
shootingDate.public static final String SHOOTING_MODE
shootingMode.public static List<IndexForm> getPhotoSchema()
PhotoItem object.public PhotoItem setPhotoCategory(String photoCategory)
photoCategory index field.
Attributes of this index field:
IndexForm.indexFieldName = "photoCategory";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
photoCategory - Indicates the format (such as JPG) to set.PhotoItem object.public PhotoItem setOcrText(String ocrText)
ocrText index field.
Attributes of this index field:
IndexForm.indexFieldName = "ocrText";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = false;
IndexForm.isSearch = true;
ocrText - Indicates recognized text to set.PhotoItem object.public PhotoItem setHoliday(String holiday)
holiday index field.
Attributes of this index field:
IndexForm.indexFieldName = "holiday";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
holiday - Indicates the holiday information to set.PhotoItem object.public PhotoItem setTag(String tag)
tag index field.
Attributes of this index field:
IndexForm.indexFieldName = "tag";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
tag - Indicates the tag to set.PhotoItem object.public PhotoItem setFeature(String feature)
feature index field.
Attributes of this index field:
IndexForm.indexFieldName = "feature";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
feature - Indicates the feature to set.PhotoItem object.public PhotoItem setShootingDate(String shootingDate)
shootingDate index field.
Attributes of this index field:
IndexForm.indexFieldName = "shootingDate";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
shootingDate - Indicates the shooting time to set.PhotoItem object.public PhotoItem setShootingMode(String shootingMode)
shootingMode index field.
Attributes of this index field:
IndexForm.indexFieldName = "shootingMode";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
shootingMode - Indicates the shooting mode to set.PhotoItem object.public PhotoItem 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.PhotoItem object.public PhotoItem setLatitude(Double latitude)
latitude index field.
Attributes of this index field:
IndexForm.indexFieldName = "latitude";
IndexForm.indexType = IndexType.DOUBLE;
IndexForm.isPrimaryKey = false;PhotoItem
IndexForm.isStore = trPhotoItemue;
IndexForm.isSearch = false;
latitude - Indicates the latitude to set.PhotoItem object.public PhotoItem setCountry(String country)
country index field.
Attributes of this index field:
IndexForm.indexFieldName = "country";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
country - Indicates the country/region to set.PhotoItem object.public PhotoItem setProvince(String province)
province index field.
Attributes of this index field:
IndexForm.indexFieldName = "province";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
province - Indicates the first-level administrative division (such as a province or state) to set.PhotoItem object.public PhotoItem setCity(String city)
city index field.
Attributes of this index field:
IndexForm.indexFieldName = "city";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
city - Indicates the city to set.PhotoItem object.public PhotoItem setDistrict(String district)
district index field.
Attributes of this index field:
IndexForm.indexFieldName = "district";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
district - Indicates the city district to set.PhotoItem object.public PhotoItem setRoad(String road)
road index field.
Attributes of this index field:
IndexForm.indexFieldName = "road";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
road - Indicates the road to set.PhotoItem object.public PhotoItem 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 size to set.PhotoItem object.public PhotoItem setHeight(Integer height)
height index field.
Attributes of this index field:
IndexForm.indexFieldName = "height";
IndexForm.indexType = IndexType.NO;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
height - Indicates the height to set.PhotoItem object.public PhotoItem setWidth(Integer width)
width index field.
Attributes of this index field:
IndexForm.indexFieldName = "width";
IndexForm.indexType = IndexType.NO;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = false;
width - Indicates the width to set.PhotoItem object.public String getPhotoCategory()
public String getOcrText()
public String getHoliday()
public String getTag()
public String getFeature()
public String getShootingDate()
public String getShootingMode()
public Double getLatitude()
public Double getLongitude()
public String getCountry()
public String getProvince()
public String getCity()
public String getDistrict()
public String getRoad()
public Integer getSize()
public Integer getHeight()
public Integer getWidth()