KnowledgeSourceFile Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. KnowledgeSourceFile
- com.
Implements
public final class KnowledgeSourceFile
implements JsonSerializable<KnowledgeSourceFile>
Metadata for a file uploaded to a File knowledge source.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
|
Offset |
getCreatedAt()
Get the created |
| String |
getErrorMessage()
Get the error |
|
File |
getExtractionMode()
Get the extraction |
| String |
getFileId()
Get the file |
| String |
getFileName()
Get the file |
| Long |
getFileSizeBytes()
Get the file |
|
Offset |
getLastUpdatedAt()
Get the last |
| Map<String,String> |
getMetadata()
Get the metadata property: Custom key/value metadata stored with the file. |
|
Blob |
getParsingMode()
Get the parsing |
| String |
getPrefix()
Get the prefix property: The prefix (directory-like path) derived from the full file name. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static KnowledgeSourceFile fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeSourceFile from the JsonReader.
Parameters:
Returns:
Throws:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The timestamp when the file was created.
Returns:
getErrorMessage
public String getErrorMessage()
Get the errorMessage property: The error message if file processing failed, null otherwise.
Returns:
getExtractionMode
public FileKnowledgeSourceExtractionMode getExtractionMode()
Get the extractionMode property: The extraction mode applied to the file.
Returns:
getFileId
public String getFileId()
Get the fileId property: The unique identifier for the file.
Returns:
getFileName
public String getFileName()
Get the fileName property: The original file name.
Returns:
getFileSizeBytes
public Long getFileSizeBytes()
Get the fileSizeBytes property: The file size in bytes.
Returns:
getLastUpdatedAt
public OffsetDateTime getLastUpdatedAt()
Get the lastUpdatedAt property: The timestamp when the file was last updated.
Returns:
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: Custom key/value metadata stored with the file. Returned but not searchable or filterable.
Returns:
getParsingMode
public BlobIndexerParsingMode getParsingMode()
Get the parsingMode property: The parsing mode applied to the file (auto-detected from the file).
Returns:
getPrefix
public String getPrefix()
Get the prefix property: The prefix (directory-like path) derived from the full file name.
Returns: