susumu.yata
null+****@clear*****
Tue Dec 16 10:45:09 JST 2014
susumu.yata 2014-11-25 10:47:34 +0900 (Tue, 25 Nov 2014) New Revision: b5d28b618677c638374978a123e9f980a95e10b0 https://github.com/groonga/grnxx/commit/b5d28b618677c638374978a123e9f980a95e10b0 Message: Add comments for parse_datum(). Modified files: lib/grnxx/impl/column/scalar/bool.hpp lib/grnxx/impl/column/scalar/float.hpp lib/grnxx/impl/column/scalar/geo_point.hpp lib/grnxx/impl/column/scalar/int.hpp lib/grnxx/impl/column/scalar/text.hpp lib/grnxx/impl/column/vector/bool.hpp lib/grnxx/impl/column/vector/float.hpp lib/grnxx/impl/column/vector/geo_point.hpp lib/grnxx/impl/column/vector/int.hpp lib/grnxx/impl/column/vector/text.hpp Modified: lib/grnxx/impl/column/scalar/bool.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/scalar/bool.hpp 2014-11-25 10:36:28 +0900 (ef87898) +++ lib/grnxx/impl/column/scalar/bool.hpp 2014-11-25 10:47:34 +0900 (14dcd0a) @@ -48,6 +48,10 @@ class Column<Bool> : public ColumnBase { protected: Array<Bool> values_; + // Parse "datum" as Bool. + // + // On success, returns the result. + // On failure, throws an exception. static Bool parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/scalar/float.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/scalar/float.hpp 2014-11-25 10:36:28 +0900 (1e65fd5) +++ lib/grnxx/impl/column/scalar/float.hpp 2014-11-25 10:47:34 +0900 (554af32) @@ -48,6 +48,10 @@ class Column<Float> : public ColumnBase { protected: Array<Float> values_; + // Parse "datum" as Float. + // + // On success, returns the result. + // On failure, throws an exception. static Float parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/scalar/geo_point.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/scalar/geo_point.hpp 2014-11-25 10:36:28 +0900 (4ad688b) +++ lib/grnxx/impl/column/scalar/geo_point.hpp 2014-11-25 10:47:34 +0900 (fa883f1) @@ -48,6 +48,10 @@ class Column<GeoPoint> : public ColumnBase { protected: Array<GeoPoint> values_; + // Parse "datum" as GeoPoint. + // + // On success, returns the result. + // On failure, throws an exception. static GeoPoint parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/scalar/int.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/scalar/int.hpp 2014-11-25 10:36:28 +0900 (d3323fc) +++ lib/grnxx/impl/column/scalar/int.hpp 2014-11-25 10:47:34 +0900 (8f9b4ba) @@ -52,6 +52,10 @@ class Column<Int> : public ColumnBase { private: Array<Int> values_; + // Parse "datum" as Int. + // + // On success, returns the result. + // On failure, throws an exception. static Int parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/scalar/text.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/scalar/text.hpp 2014-11-25 10:36:28 +0900 (e36889b) +++ lib/grnxx/impl/column/scalar/text.hpp 2014-11-25 10:47:34 +0900 (1740d0e) @@ -75,6 +75,10 @@ class Column<Text> : public ColumnBase { return std::numeric_limits<uint64_t>::max(); } + // Parse "datum" as Text. + // + // On success, returns the result. + // On failure, throws an exception. static Text parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/vector/bool.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/vector/bool.hpp 2014-11-25 10:36:28 +0900 (694ab33) +++ lib/grnxx/impl/column/vector/bool.hpp 2014-11-25 10:47:34 +0900 (97ae887) @@ -71,6 +71,10 @@ class Column<Vector<Bool>> : public ColumnBase { return std::numeric_limits<uint64_t>::max(); } + // Parse "datum" as Vector<Bool>. + // + // On success, returns the result. + // On failure, throws an exception. static Vector<Bool> parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/vector/float.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/vector/float.hpp 2014-11-25 10:36:28 +0900 (23bab02) +++ lib/grnxx/impl/column/vector/float.hpp 2014-11-25 10:47:34 +0900 (35f91f6) @@ -71,6 +71,10 @@ class Column<Vector<Float>> : public ColumnBase { return std::numeric_limits<uint64_t>::max(); } + // Parse "datum" as Vector<Float>. + // + // On success, returns the result. + // On failure, throws an exception. static Vector<Float> parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/vector/geo_point.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/vector/geo_point.hpp 2014-11-25 10:36:28 +0900 (5a68286) +++ lib/grnxx/impl/column/vector/geo_point.hpp 2014-11-25 10:47:34 +0900 (1648243) @@ -72,6 +72,10 @@ class Column<Vector<GeoPoint>> : public ColumnBase { return std::numeric_limits<uint64_t>::max(); } + // Parse "datum" as Vector<GeoPoint>. + // + // On success, returns the result. + // On failure, throws an exception. static Vector<GeoPoint> parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/vector/int.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/vector/int.hpp 2014-11-25 10:36:28 +0900 (1447d17) +++ lib/grnxx/impl/column/vector/int.hpp 2014-11-25 10:47:34 +0900 (ed42864) @@ -71,6 +71,10 @@ class Column<Vector<Int>> : public ColumnBase { return std::numeric_limits<uint64_t>::max(); } + // Parse "datum" as Vector<Int>. + // + // On success, returns the result. + // On failure, throws an exception. static Vector<Int> parse_datum(const Datum &datum); }; Modified: lib/grnxx/impl/column/vector/text.hpp (+4 -0) =================================================================== --- lib/grnxx/impl/column/vector/text.hpp 2014-11-25 10:36:28 +0900 (1c7c8a1) +++ lib/grnxx/impl/column/vector/text.hpp 2014-11-25 10:47:34 +0900 (42f4700) @@ -63,6 +63,10 @@ class Column<Vector<Text>> : public ColumnBase { return Header{ 0, Int::na() }; } + // Parse "datum" as Vector<Text>. + // + // On success, returns the result. + // On failure, throws an exception. static Vector<Text> parse_datum(const Datum &datum); }; -------------- next part -------------- HTML����������������������������... Download