[Groonga-commit] groonga/gcs [master] Add uint field to the fixture

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 11日 (水) 17:44:56 JST


SHIMODA Hiroshi	2012-07-11 17:44:56 +0900 (Wed, 11 Jul 2012)

  New Revision: 421a90b650e7a05f733e67cf3ac47a99486af41f
  https://github.com/groonga/gcs/commit/421a90b650e7a05f733e67cf3ac47a99486af41f

  Log:
    Add uint field to the fixture

  Modified files:
    test/fixture/companies/add.sdf.json
    test/fixture/companies/data-deleted.grn
    test/fixture/companies/data.grn
    test/fixture/companies/ddl.grn

  Modified: test/fixture/companies/add.sdf.json (+20 -10)
===================================================================
--- test/fixture/companies/add.sdf.json    2012-07-11 15:39:38 +0900 (46c8756)
+++ test/fixture/companies/add.sdf.json    2012-07-11 17:44:56 +0900 (cf41f18)
@@ -7,7 +7,8 @@
     "fields": {
       "name": "Brazil",
       "address": "Shibuya, Tokyo, Japan",
-      "email_address": "info****@razil*****"
+      "email_address": "info****@razil*****",
+      "age": 1
     }
   },
   {
@@ -18,7 +19,8 @@
     "fields": {
       "name": "Enishi Tech Inc.",
       "address": "Sapporo, Hokkaido, Japan",
-      "email_address": "info****@enish*****"
+      "email_address": "info****@enish*****",
+      "age": 2
     }
   },
   {
@@ -29,7 +31,8 @@
     "fields": {
       "name": "ClearCode Inc.",
       "address": "Hongo, Tokyo, Japan",
-      "email_address": "info****@clear*****"
+      "email_address": "info****@clear*****",
+      "age": 3
     }
   },
   {
@@ -39,7 +42,8 @@
     "lang": "en",
     "fields": {
       "name": "Anaheim Electronics",
-      "address": "Granada, Moon"
+      "address": "Granada, Moon",
+      "age": 4
     }
   },
   {
@@ -49,7 +53,8 @@
     "lang": "en",
     "fields": {
       "name": "Shinsei Industry",
-      "address": "Earth"
+      "address": "Earth",
+      "age": 5
     }
   },
   {
@@ -59,7 +64,8 @@
     "lang": "en",
     "fields": {
       "name": "Omni Consumer Products",
-      "address": "Detroit and Delta City, Michigan, United States"
+      "address": "Detroit and Delta City, Michigan, United States",
+      "age": 6
     }
   },
   {
@@ -69,7 +75,8 @@
     "lang": "en",
     "fields": {
       "name": "Capsule Corporation",
-      "address": "West City"
+      "address": "West City",
+      "age": 7
     }
   },
   {
@@ -79,7 +86,8 @@
     "lang": "en",
     "fields": {
       "name": "Stark Industries",
-      "address": "United States"
+      "address": "United States",
+      "age": 8
     }
   },
   {
@@ -89,7 +97,8 @@
     "lang": "en",
     "fields": {
       "name": "Umbrella Corporation",
-      "address": "Tokyo, Japan"
+      "address": "Tokyo, Japan",
+      "age": 9
     }
   },
   {
@@ -99,7 +108,8 @@
     "lang": "en",
     "fields": {
       "name": "U.S. Robots and Mechanical Men",
-      "address": "New York, United States"
+      "address": "New York, United States",
+      "age": 10
     }
   }
 ]

  Modified: test/fixture/companies/data-deleted.grn (+10 -10)
===================================================================
--- test/fixture/companies/data-deleted.grn    2012-07-11 15:39:38 +0900 (a561686)
+++ test/fixture/companies/data-deleted.grn    2012-07-11 17:44:56 +0900 (baa0ebd)
@@ -1,13 +1,13 @@
 load --table companies
 [
-["_key","address","description","email_address","name"],
-["id2","Sapporo, Hokkaido, Japan","","info****@enish*****","Enishi Tech Inc."],
-["id3","Hongo, Tokyo, Japan","","info****@clear*****","ClearCode Inc."],
-["id4","Granada, Moon","","","Anaheim Electronics"],
-["id5","Earth","","","Shinsei Industry"],
-["id6","Detroit and Delta City, Michigan, United States","","","Omni Consumer Products"],
-["id7","West City","","","Capsule Corporation"],
-["id8","United States","","","Stark Industries"],
-["id9","Tokyo, Japan","","","Umbrella Corporation"],
-["id10","New York, United States","","","U.S. Robots and Mechanical Men"]
+["_key","address","age","description","email_address","name"],
+["id2","Sapporo, Hokkaido, Japan",2,"","info****@enish*****","Enishi Tech Inc."],
+["id3","Hongo, Tokyo, Japan",3,"","info****@clear*****","ClearCode Inc."],
+["id4","Granada, Moon",4,"","","Anaheim Electronics"],
+["id5","Earth",5,"","","Shinsei Industry"],
+["id6","Detroit and Delta City, Michigan, United States",6,"","","Omni Consumer Products"],
+["id7","West City",7,"","","Capsule Corporation"],
+["id8","United States",8,"","","Stark Industries"],
+["id9","Tokyo, Japan",9,"","","Umbrella Corporation"],
+["id10","New York, United States",10,"","","U.S. Robots and Mechanical Men"]
 ]

  Modified: test/fixture/companies/data.grn (+11 -11)
===================================================================
--- test/fixture/companies/data.grn    2012-07-11 15:39:38 +0900 (6c428d2)
+++ test/fixture/companies/data.grn    2012-07-11 17:44:56 +0900 (3fdc8b5)
@@ -1,14 +1,14 @@
 load --table companies
 [
-["_key","address","description","email_address","name"],
-["id1","Shibuya, Tokyo, Japan","","info****@razil*****","Brazil"],
-["id2","Sapporo, Hokkaido, Japan","","info****@enish*****","Enishi Tech Inc."],
-["id3","Hongo, Tokyo, Japan","","info****@clear*****","ClearCode Inc."],
-["id4","Granada, Moon","","","Anaheim Electronics"],
-["id5","Earth","","","Shinsei Industry"],
-["id6","Detroit and Delta City, Michigan, United States","","","Omni Consumer Products"],
-["id7","West City","","","Capsule Corporation"],
-["id8","United States","","","Stark Industries"],
-["id9","Tokyo, Japan","","","Umbrella Corporation"],
-["id10","New York, United States","","","U.S. Robots and Mechanical Men"]
+["_key","address","age","description","email_address","name"],
+["id1","Shibuya, Tokyo, Japan",1,"","info****@razil*****","Brazil"],
+["id2","Sapporo, Hokkaido, Japan",2,"","info****@enish*****","Enishi Tech Inc."],
+["id3","Hongo, Tokyo, Japan",3,"","info****@clear*****","ClearCode Inc."],
+["id4","Granada, Moon",4,"","","Anaheim Electronics"],
+["id5","Earth",5,"","","Shinsei Industry"],
+["id6","Detroit and Delta City, Michigan, United States",6,"","","Omni Consumer Products"],
+["id7","West City",7,"","","Capsule Corporation"],
+["id8","United States",8,"","","Stark Industries"],
+["id9","Tokyo, Japan",9,"","","Umbrella Corporation"],
+["id10","New York, United States",10,"","","U.S. Robots and Mechanical Men"]
 ]

  Modified: test/fixture/companies/ddl.grn (+3 -0)
===================================================================
--- test/fixture/companies/ddl.grn    2012-07-11 15:39:38 +0900 (3f6f13a)
+++ test/fixture/companies/ddl.grn    2012-07-11 17:44:56 +0900 (0fa1c63)
@@ -1,6 +1,8 @@
 table_create companies_BigramTerms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
 table_create companies TABLE_HASH_KEY ShortText
+table_create companies_age TABLE_HASH_KEY UInt32
 column_create companies address COLUMN_SCALAR ShortText
+column_create companies age COLUMN_SCALAR UInt32
 column_create companies description COLUMN_SCALAR ShortText
 column_create companies email_address COLUMN_SCALAR ShortText
 column_create companies name COLUMN_SCALAR ShortText
@@ -8,3 +10,4 @@ column_create companies_BigramTerms companies_name COLUMN_INDEX|WITH_POSITION co
 column_create companies_BigramTerms companies_email_address COLUMN_INDEX|WITH_POSITION companies email_address
 column_create companies_BigramTerms companies_description COLUMN_INDEX|WITH_POSITION companies description
 column_create companies_BigramTerms companies_address COLUMN_INDEX|WITH_POSITION companies address
+column_create companies_age companies_age COLUMN_INDEX|WITH_POSITION companies age
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index