本文整理匯總了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();
}