Class Chunk.Builder

    • Method Detail

      • content

        public Chunk.MetadataStage content​(@NotNull
                                           java.lang.String content)

        The parsed content of the chunk.

        The parsed content of the chunk.

        Specified by:
        content in interface Chunk.ContentStage
        Returns:
        Reference to this so that method calls can be chained together.
      • addAllBlocks

        public Chunk._FinalStage addAllBlocks​(java.util.List<Block> blocks)

        An array of block objects that make up the chunk. A Block represents a distinct content element within a document, such as a paragraph of text, a heading, a table, or a figure. Blocks are the fundamental units that make up chunks in parsed documents.

        Specified by:
        addAllBlocks in interface Chunk._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • addBlocks

        public Chunk._FinalStage addBlocks​(Block blocks)

        An array of block objects that make up the chunk. A Block represents a distinct content element within a document, such as a paragraph of text, a heading, a table, or a figure. Blocks are the fundamental units that make up chunks in parsed documents.

        Specified by:
        addBlocks in interface Chunk._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • blocks

        public Chunk._FinalStage blocks​(java.util.List<Block> blocks)

        An array of block objects that make up the chunk. A Block represents a distinct content element within a document, such as a paragraph of text, a heading, a table, or a figure. Blocks are the fundamental units that make up chunks in parsed documents.

        Specified by:
        blocks in interface Chunk._FinalStage