public override void TouchFile(string name) { lock (padLock) { ILuceneFile file = GetFile(name); file.Touch(); } }
public override long FileModified(string name) { lock (padLock) { ILuceneFile file = GetFile(name); return(file.LastModified); } }
public override void DeleteFile(string name) { lock (padLock) { ILuceneFile file = GetFile(name); file.Delete(); files.Remove(name); } }
public override IndexOutput CreateOutput(string name) { ILuceneFile file = strategy.CreateFile(Path.Combine(cacheDirectory, name)); lock (padLock) { ILuceneFile existing; if (files.TryGetValue(name, out existing)) { existing.Delete(); } files[name] = file; } return(strategy.CreateOutput(file)); }
public override long FileLength(string name) { ILuceneFile file = GetFile(name); return(file.Length); }
public IndexOutput CreateOutput(ILuceneFile file) { return(new MemoryOutputStream((MemoryCachedFile)file)); }
public IndexOutput CreateOutput(ILuceneFile file) { return(new RamOutputStream((RamFile)file)); }
public IndexInput CreateInput(ILuceneFile file) { return(new RamInputStream((RamFile)file)); }
public override IndexInput OpenInput(string name) { ILuceneFile file = GetFile(name); return(strategy.CreateInput(file)); }