Skip to content

GEOMESA-1363 - The Native API should allow an AccumuloGeoMesaIndex to…#1023

Merged
jnh5y merged 4 commits into
masterfrom
fcr_napi_connector
Aug 5, 2016
Merged

GEOMESA-1363 - The Native API should allow an AccumuloGeoMesaIndex to…#1023
jnh5y merged 4 commits into
masterfrom
fcr_napi_connector

Conversation

@cne1x

@cne1x cne1x commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

… be instantiated with an Accumulo Connector

GEOMESA-1364 The Native API should allow the user to compute the list of Accumulo tables for a feature type before the tables exist in Accumulo

Added unit tests for both of these functions.

Signed-off-by: Chris Eichelberger cne1x@ccri.com

… be instantiated with an Accumulo Connector

GEOMESA-1364 The Native API should allow the user to compute the list of Accumulo tables for a feature type before the tables exist in Accumulo

Added unit tests for both of these functions.

Signed-off-by: Chris Eichelberger <cne1x@ccri.com>
val DISPLAY_NAME = "Accumulo (GeoMesa)"
val DESCRIPTION = "Apache Accumulo\u2122 distributed key/value store"

val EmptyParams: JMap[String, Serializable] = new java.util.HashMap[String, Serializable]()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be good to wrap this in a Collections.immutableMap just to be safe

security.getAuthorizationsProvider(params, auths)
}

def createDataStore(connector: Connector, params: JMap[String, Serializable] = EmptyParams): AccumuloDataStore = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we can pass the connector in through the param map in the other createDataStore method, do we need this at all? Not sure if it's doing something slightly different.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an excellent point. I had missed that we had a parameter defined for the connection. Looking at the createDataStore method, though, it doesn't appear as though we have explicit support for re-using a provided Connection, which I will add in lieu of the explicitly retyped routine I created. Thanks!

@jnh5y jnh5y added this to the 1.2.5 milestone Aug 5, 2016
@jnh5y jnh5y merged commit e6eb8f0 into master Aug 5, 2016
@jnh5y jnh5y deleted the fcr_napi_connector branch August 5, 2016 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants