Package org.apache.gora.dynamodb.store

Examples of org.apache.gora.dynamodb.store.DynamoDBMapping$DynamoDBMappingBuilder


  /** Generates Java classes for a schema. */
  public static void compileSchema(File src, File dest) throws IOException {
    log.info("Compiling " + src + " to " + dest );
    GoraDynamoDBCompiler compiler = new GoraDynamoDBCompiler(dest);
    DynamoDBMapping dynamoDBMap = compiler.readMapping(src);
    if (dynamoDBMap.getTables().isEmpty())  throw new IllegalStateException("There are not tables defined.");

    for(String tableName : dynamoDBMap.getTables().keySet()){
      compiler.compile(tableName, dynamoDBMap.getKeySchema(tableName), dynamoDBMap.getItems(tableName));
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.gora.dynamodb.store.DynamoDBMapping$DynamoDBMappingBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.