Builder { public static FloatMapper floatMapper() { return new FloatMapper(); }  static Index index(String table, String name); static Index index(String keyspace, String table, String name); static Schema schema(); static BigDecimalMapper bigDecimalMapper(); static BigIntegerMapper bigIntegerMapper(); static BitemporalMapper bitemporalMapper(String vtFrom, String vtTo, String ttFrom, String ttTo); static BlobMapper blobMapper(); static BooleanMapper booleanMapper(); static DateMapper dateMapper(); static DateRangeMapper dateRangeMapper(String from, String to); static DoubleMapper doubleMapper(); static FloatMapper floatMapper(); static GeoPointMapper geoPointMapper(String latitude, String longitude); static GeoShapeMapper geoShapeMapper(); static InetMapper inetMapper(); static IntegerMapper integerMapper(); static LongMapper longMapper(); static StringMapper stringMapper(); static TextMapper textMapper(); static UUIDMapper uuidMapper(); static ClasspathAnalyzer classpathAnalyzer(String className); static SnowballAnalyzer snowballAnalyzer(String language); static Search search(); static AllCondition all(); static BitemporalCondition bitemporal(String field); static BooleanCondition bool(); static BooleanCondition must(Condition<?>... conditions); static BooleanCondition should(Condition<?>... conditions); static BooleanCondition not(Condition<?>... conditions); static ContainsCondition contains(String field, Object... values); static FuzzyCondition fuzzy(String field, String value); static LuceneCondition lucene(String query); static MatchCondition match(String field, Object value); static NoneCondition none(); static PhraseCondition phrase(String field, String value); static PrefixCondition prefix(String field, String value); static RangeCondition range(String field); static RegexpCondition regexp(String field, String value); static WildcardCondition wildcard(String field, String value); static GeoBBoxCondition geoBBox(String field,
                                           double minLatitude,
                                           double maxLatitude,
                                           double minLongitude,
                                           double maxLongitude); static GeoDistanceCondition geoDistance(String field,
                                                   double latitude,
                                                   double longitude,
                                                   String maxDistance); static GeoShapeCondition geoShape(String field, GeoShape shape); static GeoShapeCondition geoShape(String field, String shape); static DateRangeCondition dateRange(String field); static SimpleSortField field(String field); static GeoDistanceSortField geoDistance(String field, double latitude, double longitude); static GeoTransformation.BBox bbox(); static GeoTransformation.Buffer buffer(); static GeoTransformation.Centroid centroid(); static GeoTransformation.ConvexHull convexHull(); static GeoShape.WKT wkt(String value); static GeoShape.BBox bbox(GeoShape shape); static GeoShape.BBox bbox(String shape); static GeoShape.Buffer buffer(GeoShape shape); static GeoShape.Buffer buffer(String shape); static GeoShape.Centroid centroid(GeoShape shape); static GeoShape.Centroid centroid(String shape); static GeoShape.ConvexHull convexHull(GeoShape shape); static GeoShape.ConvexHull convexHull(String shape); static GeoShape.Difference difference(); static GeoShape.Difference difference(GeoShape... shapes); static GeoShape.Difference difference(List<GeoShape> shapes); static GeoShape.Difference difference(String... shapes); static GeoShape.Intersection intersection(); static GeoShape.Intersection intersection(GeoShape... shapes); static GeoShape.Intersection intersection(List<GeoShape> shapes); static GeoShape.Intersection intersection(String... shapes); static GeoShape.Union union(); static GeoShape.Union union(GeoShape... shapes); static GeoShape.Union union(List<GeoShape> shapes); static GeoShape.Union union(String... shapes); static Partitioner.None nonePartitioner(); static Partitioner.OnToken partitionerOnToken(int partitions); static Partitioner.OnColumn partitionerOnColumn(int partitions, String column); static Partitioner.OnVirtualNode partitionerOnVirtualNodes(int virtualNodesPerPartition);  }
@Test public void testFloatMapperDefaults() { String actual = floatMapper().build(); String expected = "{\"type\":\"float\"}"; assertEquals("float mapper serialization is wrong", expected, actual); }
@Test public void testFloatMapperFull() { String actual = floatMapper().validated(true).boost(2.1f).column("column").build(); String expected = "{\"type\":\"float\",\"validated\":true,\"column\":\"column\",\"boost\":2.1}"; assertEquals("float mapper serialization is wrong", expected, actual); }