All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proj.zoie.hourglass.impl.NullDocIDMapperFactory Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package proj.zoie.hourglass.impl;

import proj.zoie.api.DocIDMapper;
import proj.zoie.api.DocIDMapperFactory;
import proj.zoie.api.ZoieIndexReader;
import proj.zoie.api.ZoieMultiReader;

public class NullDocIDMapperFactory implements DocIDMapperFactory
{
  public static final NullDocIDMapperFactory INSTANCE = new NullDocIDMapperFactory();
  public DocIDMapper getDocIDMapper(ZoieMultiReader reader)
  {
    for(ZoieIndexReaderr : reader.getSequentialSubReaders())
    {
      r.setDocIDMapper(NullDocIDMapper.INSTANCE);
    }
    return NullDocIDMapper.INSTANCE;
  }  
}