Interface MutableSegment

    • Method Detail

      • index

        boolean index​(GenericRow row,
                      @Nullable
                      RowMetadata rowMetadata)
               throws IOException
        Indexes a record into the segment with optionally provided metadata.
        Parameters:
        row - Record represented as a GenericRow
        rowMetadata - the metadata associated with the message
        Returns:
        Whether the segment is full (i.e. cannot index more record into it)
        Throws:
        IOException
      • getNumDocsIndexed

        int getNumDocsIndexed()
        Returns the number of records already indexed into the segment.
        Returns:
        The number of records indexed