func (si *SegmentInfo) IsCompoundFile() bool {
	return si.isCompoundFile
}
/* Returns true if this segment is stored as a compound file
package model
import (
	"bytes"
	"fmt"
	"github.com/balzaczyy/golucene/core/store"
	"github.com/balzaczyy/golucene/core/util"
	"regexp"
	"strconv"
)
const NO = -1
const YES = 1
type SegmentInfo struct {
	Dir            store.Directory
	version        util.Version
	Name           string
	docCount       *util.SetOnce  
	isCompoundFile bool
	codec          interface{}
	diagnostics    map[string]string
	files          map[string]bool  
	*AttributesMixin
}
func (info *SegmentInfo) SetDiagnostics(diagnostics map[string]string) {
	info.diagnostics = diagnostics
}
func (info *SegmentInfo) Diagnostics() map[string]string {
	return info.diagnostics
}
func NewSegmentInfo(dir store.Directory,
	version util.Version, name string, docCount int,
	isCompoundFile bool, codec interface{},
	diagnostics map[string]string) *SegmentInfo {
	return NewSegmentInfo2(dir, version, name, docCount, isCompoundFile, codec, diagnostics, nil)
}
func NewSegmentInfo2(dir store.Directory,
	version util.Version, name string, docCount int,
	isCompoundFile bool, codec interface{},
	diagnostics map[string]string,
	attributes map[string]string) *SegmentInfo {
	_, ok := dir.(*store.TrackingDirectoryWrapper)
	assert(!ok)
	return &SegmentInfo{
		Dir:             dir,
		version:         version,
		Name:            name,
		docCount:        util.NewSetOnceOf(docCount),
		isCompoundFile:  isCompoundFile,
		codec:           codec,
		diagnostics:     diagnostics,
		AttributesMixin: &AttributesMixin{attributes},
	}
}
func (si *SegmentInfo) HasSeparateNorms() bool {
	return false
}
func (si *SegmentInfo) SetUseCompoundFile(isCompoundFile bool) {
	si.isCompoundFile = isCompoundFile
}