Class S3Db

java.lang.Object
io.inversion.Db<S3Db>
io.inversion.s3.S3Db

public class S3Db extends io.inversion.Db<S3Db>
Bucket ~= Table Bucket Object field key value ~= Column Only mapping the key field since it is the only way to query anything within S3, since, as of now, you can't request files by size, or content-type, or some custom header.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     
    protected String
     
    protected String
     
    protected String
     
    protected String
     

    Fields inherited from class io.inversion.Db

    bootstrap, collections, dryRun, endpointPath, excludeColumns, includeColumns, includeTables, log, name, reservedParams, type
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(io.inversion.Collection table, List<Map<String,Object>> indexValues)
     
    io.inversion.Results
    doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> columnMappedTerms)
     
    protected void
    doStartup(io.inversion.Api api)
     
    doUpsert(io.inversion.Collection table, List<Map<String,Object>> rows)
     
    com.amazonaws.services.s3.AmazonS3
     
    com.amazonaws.services.s3.AmazonS3
    getS3Client(String awsRegion, String awsAccessKey, String awsSecretKey)
     
    withAwsAccessKey(String awsAccessKey)
     
    withAwsRegion(String awsRegion)
     
    withAwsSecretKey(String awsSecretKey)
     
     

    Methods inherited from class io.inversion.Db

    beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, configDb, doPatch, doShutdown, doShutdown, filterOutJsonProperty, getCollectionByTableName, getCollections, getEndpointPath, getHref, getKey, getName, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapTo, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withEndpointPath, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withName, withType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • awsAccessKey

      protected String awsAccessKey
    • awsSecretKey

      protected String awsSecretKey
    • awsRegion

      protected String awsRegion
    • bucket

      protected String bucket
    • basePath

      protected String basePath
    • includePaths

      protected String includePaths
  • Constructor Details

    • S3Db

      public S3Db()
  • Method Details

    • doStartup

      protected void doStartup(io.inversion.Api api)
      Overrides:
      doStartup in class io.inversion.Db<S3Db>
    • doSelect

      public io.inversion.Results doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> columnMappedTerms) throws io.inversion.ApiException
      Specified by:
      doSelect in class io.inversion.Db<S3Db>
      Throws:
      io.inversion.ApiException
    • doUpsert

      public List<String> doUpsert(io.inversion.Collection table, List<Map<String,Object>> rows) throws io.inversion.ApiException
      Specified by:
      doUpsert in class io.inversion.Db<S3Db>
      Throws:
      io.inversion.ApiException
    • delete

      public void delete(io.inversion.Collection table, List<Map<String,Object>> indexValues) throws io.inversion.ApiException
      Specified by:
      delete in class io.inversion.Db<S3Db>
      Throws:
      io.inversion.ApiException
    • getS3Client

      public com.amazonaws.services.s3.AmazonS3 getS3Client()
    • getS3Client

      public com.amazonaws.services.s3.AmazonS3 getS3Client(String awsRegion, String awsAccessKey, String awsSecretKey)
    • withAwsRegion

      public S3Db withAwsRegion(String awsRegion)
    • withAwsAccessKey

      public S3Db withAwsAccessKey(String awsAccessKey)
    • withAwsSecretKey

      public S3Db withAwsSecretKey(String awsSecretKey)
    • withBucket

      public S3Db withBucket(String bucket)