View Javadoc

1   package net.obsearch.example.ted;
2   
3   import net.obsearch.OB;
4   import net.obsearch.exception.OBException;
5   import net.obsearch.index.utils.OBFactory;
6   
7   
8   public class OBTedFactory implements OBFactory<OBTed> {
9       public static int maxSliceSize = 30;
10      @Override
11      public OBTed create(String x) throws OBException {
12         return new OBTed(x); 
13      }
14  
15      @Override
16      public boolean shouldProcess(OBTed obj) throws OBException {
17           return obj.size() <= maxSliceSize;
18      }
19  
20  }