Class KnowledgeBaseIndexedOneLakeActivityRecord
java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeBaseActivityRecord
com.azure.search.documents.knowledgebases.models.KnowledgeBaseRetrievalActivityRecord
com.azure.search.documents.knowledgebases.models.KnowledgeBaseIndexedOneLakeActivityRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseActivityRecord>
public final class KnowledgeBaseIndexedOneLakeActivityRecord
extends KnowledgeBaseRetrievalActivityRecord
Represents a indexed OneLake retrieval activity record.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeBaseIndexedOneLakeActivityRecord class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeBaseIndexedOneLakeActivityRecord from the JsonReader.Get the indexedOneLakeArguments property: The indexed OneLake arguments for the retrieval activity.getType()Get the type property: The type of the activity record.Set the count property: The count of documents retrieved that were sufficiently relevant to pass the reranker threshold.setElapsedMs(Integer elapsedMs) Set the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.setError(KnowledgeBaseErrorDetail error) Set the error property: The error detail explaining why the operation failed.setIndexedOneLakeArguments(KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments) Set the indexedOneLakeArguments property: The indexed OneLake arguments for the retrieval activity.setKnowledgeSourceName(String knowledgeSourceName) Set the knowledgeSourceName property: The knowledge source for the retrieval activity.setQueryTime(OffsetDateTime queryTime) Set the queryTime property: The query time for this retrieval activity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class KnowledgeBaseRetrievalActivityRecord
getCount, getKnowledgeSourceName, getQueryTimeMethods inherited from class KnowledgeBaseActivityRecord
getElapsedMs, getError, getIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KnowledgeBaseIndexedOneLakeActivityRecord
public KnowledgeBaseIndexedOneLakeActivityRecord(int id) Creates an instance of KnowledgeBaseIndexedOneLakeActivityRecord class.- Parameters:
id- the id value to set.
-
-
Method Details
-
getType
Get the type property: The type of the activity record.- Overrides:
getTypein classKnowledgeBaseRetrievalActivityRecord- Returns:
- the type value.
-
getIndexedOneLakeArguments
Get the indexedOneLakeArguments property: The indexed OneLake arguments for the retrieval activity.- Returns:
- the indexedOneLakeArguments value.
-
setIndexedOneLakeArguments
public KnowledgeBaseIndexedOneLakeActivityRecord setIndexedOneLakeArguments(KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments) Set the indexedOneLakeArguments property: The indexed OneLake arguments for the retrieval activity.- Parameters:
indexedOneLakeArguments- the indexedOneLakeArguments value to set.- Returns:
- the KnowledgeBaseIndexedOneLakeActivityRecord object itself.
-
setKnowledgeSourceName
Set the knowledgeSourceName property: The knowledge source for the retrieval activity.- Overrides:
setKnowledgeSourceNamein classKnowledgeBaseRetrievalActivityRecord- Parameters:
knowledgeSourceName- the knowledgeSourceName value to set.- Returns:
- the KnowledgeBaseRetrievalActivityRecord object itself.
-
setQueryTime
Set the queryTime property: The query time for this retrieval activity.- Overrides:
setQueryTimein classKnowledgeBaseRetrievalActivityRecord- Parameters:
queryTime- the queryTime value to set.- Returns:
- the KnowledgeBaseRetrievalActivityRecord object itself.
-
setCount
Set the count property: The count of documents retrieved that were sufficiently relevant to pass the reranker threshold.- Overrides:
setCountin classKnowledgeBaseRetrievalActivityRecord- Parameters:
count- the count value to set.- Returns:
- the KnowledgeBaseRetrievalActivityRecord object itself.
-
setElapsedMs
Set the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.- Overrides:
setElapsedMsin classKnowledgeBaseRetrievalActivityRecord- Parameters:
elapsedMs- the elapsedMs value to set.- Returns:
- the KnowledgeBaseActivityRecord object itself.
-
setError
Set the error property: The error detail explaining why the operation failed. This property is only included when the activity does not succeed.- Overrides:
setErrorin classKnowledgeBaseRetrievalActivityRecord- Parameters:
error- the error value to set.- Returns:
- the KnowledgeBaseActivityRecord object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeBaseActivityRecord>- Overrides:
toJsonin classKnowledgeBaseRetrievalActivityRecord- Throws:
IOException
-
fromJson
public static KnowledgeBaseIndexedOneLakeActivityRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeBaseIndexedOneLakeActivityRecord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeBaseIndexedOneLakeActivityRecord if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KnowledgeBaseIndexedOneLakeActivityRecord.
-