Examples of TrieField


Examples of org.apache.solr.schema.TrieField

          {
            return new StringSelectInQuery<String>(file,field,new HdfsToSet.TransString());
          }
          if(ft instanceof TrieField)
          {
            TrieField tft=(TrieField)ft;
            TrieTypes cdt=tft.getType();
            if(cdt.equals(TrieTypes.INTEGER))
            {
              return new NumericSelectInQuery<Integer>(field,tft.getPrecisionStep(),DataType.INT, new HdfsToSet.TransInt(),file);
            }
            if(cdt.equals(TrieTypes.LONG))
            {
              return new NumericSelectInQuery<Long>(field,tft.getPrecisionStep(),DataType.LONG, new HdfsToSet.TransLong(),file);
            }
           
            if(cdt.equals(TrieTypes.FLOAT))
            {
              return new NumericSelectInQuery<Float>(field,tft.getPrecisionStep(),DataType.FLOAT, new HdfsToSet.TransFloat(),file);
            }
           
            if(cdt.equals(TrieTypes.DOUBLE))
            {
              return new NumericSelectInQuery<Double>(field,tft.getPrecisionStep(),DataType.DOUBLE, new HdfsToSet.TransDouble(),file);
            }
           
            if(cdt.equals(TrieTypes.DATE))
            {
              return new NumericSelectInQuery<Long>(field,tft.getPrecisionStep(),DataType.LONG, new HdfsToSet.TransDate(),file);
            }
          }
       
        throw new ParseException("file type error");
View Full Code Here

Examples of org.apache.solr.schema.TrieField

  }

  private void checkPrecisionSteps(String fieldType) {
    FieldType type = h.getCore().getSchema().getFieldType(fieldType);
    if (type instanceof TrieField) {
      TrieField field = (TrieField) type;
      assertTrue(field.getPrecisionStep() > 0 && field.getPrecisionStep() < 64);
    }
  }
View Full Code Here

Examples of org.apache.solr.schema.TrieField

  }

  private void checkPrecisionSteps(String fieldType) {
    FieldType type = h.getCore().getSchema().getFieldType(fieldType);
    if (type instanceof TrieField) {
      TrieField field = (TrieField) type;
      assertTrue(field.getPrecisionStep() > 0 && field.getPrecisionStep() < 64);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.