Package net.sf.clairv.util

Examples of net.sf.clairv.util.Pair


          if (obj instanceof Date) {
            content = format.format((Date) obj);
          } else {
            content = rs.getObject(name).toString();
          }
          Pair type = (Pair) fieldTypeMappings.get(name);
          log.debug("Adding a field of name \"" + name
              + "\" with content: " + content);
          if (type != null) {
            doc.addField(name, content, (StoreOption)(type.t), (IndexOption)(type.v));
          } else {
View Full Code Here


        i = IndexOption.UN_TOKENIZED;
      } else if ("NO".equalsIgnoreCase(temp)) {
        i = IndexOption.NO;
      }
      if (s != null && i != null) {
        return new Pair(s, i);
      } else {
        return null;
      }
    } catch (Exception e) {
      return null;
View Full Code Here

TOP

Related Classes of net.sf.clairv.util.Pair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.