Copass 帮助文档的Compass Gps章节的译文

来源:互联网 发布:高铁抢票软件哪个好 编辑:程序博客网 时间:2024/05/01 10:56
     最近在研究Compass,在阅读英文帮助文档的时候,心血来潮,一边阅读,一边翻译.学Compass,学E文,提高中文表达能力,一箭三雕.下面是部分关于Compass Gps介绍的翻译.

Compass Gps

One of the aims of Compass::Gps is to provide a common API for integrating multiple different indexable data sources (which we are calling Gps devices). An indexable data source could be a file system, ftp site, web page or a database (either via JDBC or ORM tool). A datasource accessed as a GPS device provides the ability to index it's data, either via batch mode or through real time data changes which are mirrored in the index.

Compass的一个目的是:Gps是提供通用的集成多种不同的可索引的数据源(也称为Gps设备)API。可索引的数据源可以是文件系统,FTP站点,网页或者数据库,数据源被Gps索引数据,通过批处理的模式或者在索引中监视实时数据变更

Compass::Gps provides an API for registering GPS devices and controlling their lifecycle, along with a set of base classes that implement popular data accessing technologies (i.e JDBC, JDO, Hibernate ORM and OJB). Developers can create their own GPS Device's simply, extending the capability of Compass::Gps.

Compass::Gps提供注册GPS devicesAPI和控制它们的生命周期,随同一套很受欢迎的数据访问技术(i.e JDBC, JDO, Hibernate ORM and OJB),开发者能简易的创建自己的GPS Device,扩展Compass::Gps的能力

 

 Overview

Compass Gps provides integration with different indexable data sources using two interfaces: CompassGps and CompassGpsDevice. Both interfaces are very abstract, since different data sources are usually different in the way they work or the API they expose.

Compass Gps提供两个访问不同可索引数据源的接口:CompassGps and CompassGpsDevice因为不同的数据源运行的方式和暴露的API不同,所以两个接口都是虚拟接口

 

A device is considered to be any type of indexable data source imaginable, from a database (maybe through the use of an ORM mapping tool), file system, ftp site, or a web site.

一个设备是任意一种类型的可索引的数据源,来自数据库(可能采用ORM映射工具),文件系统,FTP站点,或者网站。

The main contract that a device is required to provide is the ability to index it's data (using the index() operation). You can think of it as batch indexing the datasource data, providing access for future search queries. An additional possible operation that a device can implement is mirror data changes, either actively or passively.

设备必须提供索引本身数据的能力(采用index()方法),你可以认为它是用来批索引的数据源中将被检索的数据, 设备也能监视数据的变换

Compass Gps is built on top of Compass Core module, utilizing all it's features such as transactions (including the important batch_insert level for batch indexing), OSEM, and the simple API that comes with Compass Core.

Compass Gps是建立Compass 核心模块之上的,利用核心模块的事务(包含重要的batch_insert层次的批索引),对象搜索引擎映射OSEM,和简单的API

 
原创粉丝点击