Class SearchHighlights
java.lang.Object
com.azure.analytics.purview.datamap.models.SearchHighlights
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchHighlights>
public final class SearchHighlights
extends Object
implements com.azure.json.JsonSerializable<SearchHighlights>
A highlight list that consists of index fields id ,qualifiedName, name,
description, entityType. When the keyword appears in those fields, the value of
the field, attached with emphasis mark, is returned as an element of
@search.highlights.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchHighlightsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchHighlights from the JsonReader.Get the description property: Description.Get the entityType property: Entity type.getId()Get the id property: Id.getName()Get the name property: Name.Get the qualifiedName property: Qualified name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getId
Get the id property: Id.- Returns:
- the id value.
-
getQualifiedName
Get the qualifiedName property: Qualified name.- Returns:
- the qualifiedName value.
-
getName
Get the name property: Name.- Returns:
- the name value.
-
getDescription
Get the description property: Description.- Returns:
- the description value.
-
getEntityType
Get the entityType property: Entity type.- Returns:
- the entityType value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchHighlights>- Throws:
IOException
-
fromJson
Reads an instance of SearchHighlights from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchHighlights if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SearchHighlights.
-