@@ -4,7 +4,7 @@ msgstr ""
44"Project-Id-Version : mongodb-manual 2.6\n "
55"Report-Msgid-Bugs-To : \n "
66"POT-Creation-Date : 2014-09-03 15:39-0400\n "
7- "PO-Revision-Date : 2015-02-04 18:28 +0800\n "
7+ "PO-Revision-Date : 2015-02-04 22:54 +0800\n "
88"MIME-Version : 1.0\n "
99"Content-Type : text/plain; charset=UTF-8\n "
1010"Content-Transfer-Encoding : 8bit\n "
@@ -200,8 +200,8 @@ msgid ""
200200"remove documents a certain number of seconds after creation. The index will "
201201"support queries for the creation time of the documents. Alternately,"
202202msgstr ""
203- "在(文档)创建后确定的秒数删除文档。这样的TTL索引还会支持对于文档创建时间的 "
204- "查询 。或者,"
203+ "在(文档)创建之后一定的秒数删除文档。这样的TTL索引还会支持对于文档创建时间 "
204+ "的查询 。或者,"
205205
206206#: ../source/tutorial/expire-data.txt:95
207207msgid ""
@@ -211,7 +211,7 @@ msgstr "指定一个显示过期时间。这种TTL索引将支持对文档过期
211211
212212#: ../source/tutorial/expire-data.txt:99
213213msgid "Expire Documents after a Certain Number of Seconds"
214- msgstr "在一个确定的秒数后使文档过期 "
214+ msgstr "使文档在一定的秒数后过期 "
215215
216216#: ../source/tutorial/expire-data.txt:101
217217msgid ""
@@ -222,6 +222,10 @@ msgid ""
222222"seconds in the ``expireAfterSeconds`` field has passed since the time "
223223"specified in its indexed field. [#field-is-array-of-dates]_"
224224msgstr ""
225+ "为了使文档在一定的秒数后过期,在容纳BSON日期类型或BSON日期类型对象数组的值的"
226+ "字段上创建TTL索引 *并* 在 ``expireAfterSeconds`` 指定一个正的非零值。当被索"
227+ "引字段 [#field-is-array-of-dates]_ 指定的时间经过了 ``expireAfterSeconds`` "
228+ "字段中的秒数时,文档将会过期。"
225229
226230#: ../source/tutorial/expire-data.txt:108
227231msgid ""
@@ -230,12 +234,16 @@ msgid ""
230234"value of ``3600`` to set the expiration time to be one hour after the time "
231235"specified by ``createdAt``."
232236msgstr ""
237+ "例如,如下操作在 ``log_events`` 集合的 ``createdAt`` 字段创建了一个索引并指"
238+ "定 ``expireAfterSeconds`` 的值为 ``3600`` 以使过期时间为 ``createdAt`` 指定"
239+ "的时间之后的一小时。"
233240
234241#: ../source/tutorial/expire-data.txt:117
235242msgid ""
236243"When adding documents to the ``log_events`` collection, set the "
237244"``createdAt`` field to the current time:"
238245msgstr ""
246+ "当向 ``log_events`` 集合添加文档时,设置 ``createdAt`` 字段为当前时间:"
239247
240248#: ../source/tutorial/expire-data.txt:128
241249msgid ""
@@ -244,21 +252,26 @@ msgid ""
244252"dates]_ is older than the number of seconds specified in "
245253"``expireAfterSeconds``."
246254msgstr ""
255+ "当某文档的 ``createdAt`` 字段的值 [#field-is-array-of-dates]_ 晚于 "
256+ "``expireAfterSeconds``中指定的秒数时,MongoDB会自动从 ``log_events`` 集合删"
257+ "除该文档。"
247258
248259#: ../source/tutorial/expire-data.txt:133
249260msgid ""
250261"If the field contains an array of BSON date-typed objects, data expires if "
251262"at least one of BSON date-typed object is older than the number of seconds "
252263"specified in ``expireAfterSeconds``."
253264msgstr ""
265+ "如果该字段包含一组BSON日期类型的对象,如果至少有一个BSON日期类型的对象晚于 "
266+ "``expireAfterSeconds``中指定的秒数,数据过期。"
254267
255268#: ../source/tutorial/expire-data.txt:138
256269msgid ":update:`$currentDate` operator"
257- msgstr ""
270+ msgstr ":update:`$currentDate` 操作符 "
258271
259272#: ../source/tutorial/expire-data.txt:141
260273msgid "Expire Documents at a Certain Clock Time"
261- msgstr ""
274+ msgstr "使文档在确定的时钟时间过期 "
262275
263276#: ../source/tutorial/expire-data.txt:143
264277msgid ""
@@ -269,13 +282,19 @@ msgid ""
269282"corresponding to the time the document should expire. If the indexed date "
270283"field contains a date in the past, MongoDB considers the document expired."
271284msgstr ""
285+ "为了使文档在一个确定的时钟时间过期,首先在一个容纳BSON日期类型或BSON日期类型"
286+ "对象数组的值的字段上创建TTL索引 *并* 把 ``expireAfterSeconds`` 指定为 "
287+ "``0``。对于集合中的每个文档,设置其被索引的日期字段为与文档过期的时间一致的"
288+ "值。如果被索引字段包含了一个过去了的日期,MongoDB认为该文档过期。"
272289
273290#: ../source/tutorial/expire-data.txt:151
274291msgid ""
275292"For example, the following operation creates an index on the ``log_events`` "
276293"collection's ``expireAt`` field and specifies the ``expireAfterSeconds`` "
277294"value of ``0``:"
278295msgstr ""
296+ "例如,如下操作在 ``log_events`` 集合的 ``createdAt`` 字段创建了一个索引并指"
297+ "定 ``expireAfterSeconds`` 的值 ``0``。"
279298
280299#: ../source/tutorial/expire-data.txt:159
281300msgid ""
@@ -284,6 +303,9 @@ msgid ""
284303"collection.insert()` operation adds a document that should expire at ``July "
285304"22, 2013 14:00:00``."
286305msgstr ""
306+ "对于每个文档,设置 ``expireAt`` 的值与文档过期的时间一致。举例来说,如下的 :"
307+ "method:`~db.collection.insert()` 操作添加了一个将在 ``2013年7月22号 "
308+ "14:00:00`` 过期的文档。"
287309
288310#: ../source/tutorial/expire-data.txt:172
289311msgid ""
@@ -292,3 +314,6 @@ msgid ""
292314"of seconds specified in ``expireAfterSeconds``, i.e. ``0`` seconds older in "
293315"this case. As such, the data expires at the specified ``expireAt`` value."
294316msgstr ""
317+ "当某文档的 ``expireAt`` 字段的值晚于 ``expireAfterSeconds``中指定的秒数时——"
318+ "在本例中也就是 ``0`` ,MongoDB会自动从 ``log_events`` 集合删除该文档。因"
319+ "此,数据在指定的 ``expireAt`` 值过期。"
0 commit comments