public class DocumentInfo extends Object
Learn more
Modifier | Constructor and Description |
---|---|
protected |
DocumentInfo(String filePath,
FileType fileType,
String[] innerPathParts,
int[] partIds,
DocumentSourceKind documentSourceKind,
boolean indexedWithError)
Initializes a new instance of the
DocumentInfo class. |
Modifier and Type | Method and Description |
---|---|
protected static DocumentInfo |
create(String filePath,
FileType fileType,
String[] innerPathParts,
int[] partIds,
DocumentSourceKind documentSourceKind,
boolean indexedWithError) |
static DocumentInfo |
deserialize(byte[] array)
Deserializes an instance from a byte array.
|
DocumentSourceKind |
getDocumentSourceKind()
Gets the document source kind.
|
protected static DocumentSourceKind |
getDocumentSourceKind(DocumentInfo info) |
String |
getFilePath()
Gets the file path for indexed from file or the document key for indexed from stream or structure.
|
FileType |
getFileType()
Gets the file type.
|
FormatFamily |
getFormatFamily()
Gets the document format family.
|
boolean |
getIndexedWithError()
Gets the indicator of indexing error.
|
String |
getInnerPath()
Gets the inner path for the container document item.
|
String[] |
getInnerPathParts()
Gets the inner path parts for the container document item.
|
protected static int[] |
getPartIds(DocumentInfo info) |
byte[] |
serialize()
Serializes the current instance to a byte array.
|
protected static FoundDocument |
toFoundDocument(DocumentInfo info) |
String |
toString()
Returns a
System.String that represents the current DocumentInfo . |
protected DocumentInfo(String filePath, FileType fileType, String[] innerPathParts, int[] partIds, DocumentSourceKind documentSourceKind, boolean indexedWithError)
Initializes a new instance of the DocumentInfo
class.
filePath
- The file path.fileType
- The file typeinnerPathParts
- The path parts.partIds
- The part IDs.documentSourceKind
- The document source kind.indexedWithError
- The indexed with error flag.protected static DocumentInfo create(String filePath, FileType fileType, String[] innerPathParts, int[] partIds, DocumentSourceKind documentSourceKind, boolean indexedWithError)
public String toString()
Returns a System.String
that represents the current DocumentInfo
.
public final String getFilePath()
Gets the file path for indexed from file or the document key for indexed from stream or structure.
public final FileType getFileType()
Gets the file type.
public final FormatFamily getFormatFamily()
Gets the document format family.
public final String getInnerPath()
Gets the inner path for the container document item.
public final String[] getInnerPathParts()
Gets the inner path parts for the container document item.
public final DocumentSourceKind getDocumentSourceKind()
Gets the document source kind.
public final boolean getIndexedWithError()
Gets the indicator of indexing error.
public final byte[] serialize()
Serializes the current instance to a byte array.
public static DocumentInfo deserialize(byte[] array)
Deserializes an instance from a byte array.
array
- A byte array to deserialize from.protected static final int[] getPartIds(DocumentInfo info)
protected static final DocumentSourceKind getDocumentSourceKind(DocumentInfo info)
protected static final FoundDocument toFoundDocument(DocumentInfo info)