public override IndexInput OpenInput(System.String name) { IndexInput ii = base.OpenInput(name); if (name.EndsWith(".prx")) { // we decorate the proxStream with a wrapper class that allows to count the number of calls of seek() ii = new SeeksCountingStream(enclosingInstance, ii); } return ii; }
public override IndexInput OpenInput(string name, IOContext context) { IndexInput ii = base.OpenInput(name, context); if (name.EndsWith(".prx", StringComparison.Ordinal) || name.EndsWith(".pos", StringComparison.Ordinal)) { // we decorate the proxStream with a wrapper class that allows to count the number of calls of seek() ii = new SeeksCountingStream(OuterInstance, ii); } return(ii); }
public override IndexInput OpenInput(System.String name) { IndexInput ii = base.OpenInput(name); if (name.EndsWith(".prx")) { // we decorate the proxStream with a wrapper class that allows to count the number of calls of seek() ii = new SeeksCountingStream(enclosingInstance, ii); } return(ii); }
public override IndexInput OpenInput(string name, IOContext context) { IndexInput ii = base.OpenInput(name, context); if (name.EndsWith(".prx") || name.EndsWith(".pos")) { // we decorate the proxStream with a wrapper class that allows to count the number of calls of seek() ii = new SeeksCountingStream(OuterInstance, ii); } return ii; }