本文整理汇总了Java中com.amazonaws.geo.GeoDataManager类的典型用法代码示例。如果您正苦于以下问题:Java GeoDataManager类的具体用法?Java GeoDataManager怎么用?Java GeoDataManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GeoDataManager类属于com.amazonaws.geo包,在下文中一共展示了GeoDataManager类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupGeoDataManager
import com.amazonaws.geo.GeoDataManager; //导入依赖的package包/类
private void setupGeoDataManager() {
String accessKey = System.getProperty("AWS_ACCESS_KEY_ID");
String secretKey = System.getProperty("AWS_SECRET_KEY");
String tableName = System.getProperty("PARAM1");
String regionName = System.getProperty("PARAM2");
AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
AmazonDynamoDBClient ddb = new AmazonDynamoDBClient(credentials);
Region region = Region.getRegion(Regions.fromName(regionName));
ddb.setRegion(region);
config = new GeoDataManagerConfiguration(ddb, tableName);
geoDataManager = new GeoDataManager(config);
}
示例2: createDynamoGeoService
import com.amazonaws.geo.GeoDataManager; //导入依赖的package包/类
public DynamoGeoService createDynamoGeoService(String tableName) {
GeoDataManagerConfiguration config = new GeoDataManagerConfiguration(createDynamoClient(), tableName);
return new DynamoGeoService(new GeoDataManager(config));
}
开发者ID:aws-reinvent-hackathon-2013-team,项目名称:UnitedWayRESTBackend,代码行数:5,代码来源:DynamoServiceFactory.java
示例3: DynamoGeoService
import com.amazonaws.geo.GeoDataManager; //导入依赖的package包/类
public DynamoGeoService(GeoDataManager geoDataManager) {
this.geoDataManager = geoDataManager;
createTableIfNotExisting();
waitForTableToBeReady();
}