Class CrawlDocument

java.lang.Object
io.quarkus.hibernate.orm.panache.PanacheEntityBase
ai.pipestream.connector.intake.entity.CrawlDocument

@Entity public class CrawlDocument extends io.quarkus.hibernate.orm.panache.PanacheEntityBase
Document tracking entity for orphan detection.

Tracks which documents were processed in each crawl session. Used to detect documents that existed in previous crawls but not in current crawl.

Database Table: crawl_documents

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Composite primary key for CrawlDocument.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Repository document ID (UUID).
    Composite primary key.
    Timestamp when document was processed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for JPA.
    CrawlDocument(String crawlSessionId, String sourceId, String documentId)
    Create a new crawl document tracking entry.
  • Method Summary

    Methods inherited from class io.quarkus.hibernate.orm.panache.PanacheEntityBase

    count, count, count, count, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, findAll, findAll, findById, findById, findByIdOptional, findByIdOptional, findByIds, flush, getEntityManager, getSession, isPersistent, list, list, list, list, list, list, listAll, listAll, persist, persist, persist, persist, persistAndFlush, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      Composite primary key.
    • documentId

      public String documentId
      Repository document ID (UUID). Assigned by repository-service.
    • processedAt

      public OffsetDateTime processedAt
      Timestamp when document was processed.
  • Constructor Details

    • CrawlDocument

      public CrawlDocument()
      Default constructor for JPA.
    • CrawlDocument

      public CrawlDocument(String crawlSessionId, String sourceId, String documentId)
      Create a new crawl document tracking entry.
      Parameters:
      crawlSessionId - Session ID
      sourceId - Source system ID
      documentId - Repository document ID