DocumentRepository

public abstract class DocumentRepository<E extends ExtractionsContainer>

Internal use only.

Constructors

Link copied to clipboard
public DocumentRepository<E> DocumentRepository(DocumentRemoteSource documentRemoteSource, SessionManager sessionManager, GiniApiType giniApiType)

Types

Link copied to clipboard
public class Companion

Functions

Link copied to clipboard
Link copied to clipboard
public abstract E createExtractionsContainer(Map<String, SpecificExtraction> specificExtractions, Map<String, CompoundExtraction> compoundExtractions, JSONObject responseJSON)
Link copied to clipboard
public final Resource<Document> createPartialDocument(ByteArray documentData, String contentType, String filename, DocumentManager.DocumentType documentType, DocumentMetadata documentMetadata)
Link copied to clipboard
public final Resource<Unit> deleteDocument(String documentId)
Link copied to clipboard
Link copied to clipboard
public final Resource<E> getAllExtractions(Document document)
Link copied to clipboard
public final Resource<Document> getDocument(Uri uri)
public final Resource<Document> getDocument(String documentId)
Link copied to clipboard
public final Resource<ByteArray> getFile(String location)
Link copied to clipboard
public final Resource<JSONObject> getLayout(Document document)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Map<String, SpecificExtraction> parseSpecificExtractions(JSONObject specificExtractionsJson, Map<String, List<Extraction>> candidates)
Link copied to clipboard
public final Resource<Document> pollDocument(Document document)
Link copied to clipboard
public final Resource<Unit> sendFeedbackForExtractions(Document document, Map<String, SpecificExtraction> extractions, Map<String, CompoundExtraction> compoundExtractions)

Inheritors

Link copied to clipboard