public override IndexInputSlicer CreateSlicer(string name, IOContext context)
{
EnsureOpen();
Debug.Assert(!OpenForWrite);
string id = IndexFileNames.StripSegmentName(name);
FileEntry entry = Entries[id];
if (entry == null)
{
throw new Exception("No sub-file with id " + id + " found (fileName=" + name + " files: " + Entries.Keys + ")");
}
return new IndexInputSlicerAnonymousInnerClassHelper(this, entry);
}