(self, indexname, doccount=0, segid=None, deleted=None)
:param name: The name of the segment (the Index object computes this
            from its name and the generation).
        :param doccount: The maximum document number in the segment.
        :param term_count: Total count of all terms in all documents.
        :param deleted: A set of deleted document numbers, or None if no
            deleted documents exist in this segment.
:param name: The name of the segment (the Index object computes this
            from its name and the generation).
        :param doccount: The maximum document number in the segment.
        :param term_count: Total count of all terms in all documents.
        :param deleted: A set of deleted document numbers, or None if no
            deleted documents exist in this segment.
: param name : The name of the segment ( the Index object computes this from its name and the generation ) . : param doccount : The maximum document number in the segment . : param term_count : Total count of all terms in all documents . : param deleted : A set of deleted document numbers or None if no deleted documents exist in this segment .
def __init__(self, indexname, doccount=0, segid=None, deleted=None):
        """
        :param name: The name of the segment (the Index object computes this
            from its name and the generation).
        :param doccount: The maximum document number in the segment.
        :param term_count: Total count of all terms in all documents.
        :param deleted: A set of deleted document numbers, or None if no
            deleted documents exist in this segment.
        """

        assert isinstance(indexname, string_type)
        self.indexname = indexname
        assert isinstance(doccount, integer_types)
        self.doccount = doccount
        self.segid = self._random_id() if segid is None else segid
        self.deleted = deleted
        self.compound = False
def __init__ ( self , indexname , doccount = 0 , segid = None , deleted = None ) : assert isinstance ( indexname , string_type ) self . indexname = indexname assert isinstance ( doccount , integer_types ) self . doccount = doccount self . segid = self . _random_id ( ) if segid is None else segid self . deleted = deleted self . compound = False