/// <returns> whether doc store files are stored in compound file (*.cfx) </returns>
 public static bool GetDocStoreIsCompoundFile(SegmentInfo si)
 {
     string v = si.GetAttribute(DS_COMPOUND_KEY);
     return v == null ? false : Convert.ToBoolean(v);
 }
 /// <returns> if this segment shares stored fields & vectors, this
 ///         offset is where in that file this segment's docs begin  </returns>
 public static int GetDocStoreOffset(SegmentInfo si)
 {
     string v = si.GetAttribute(DS_OFFSET_KEY);
     return v == null ? -1 : Convert.ToInt32(v);
 }
 /// <returns> name used to derive fields/vectors file we share with other segments </returns>
 public static string GetDocStoreSegment(SegmentInfo si)
 {
     string v = si.GetAttribute(DS_NAME_KEY);
     return v == null ? si.Name : v;
 }