<commit_before>Aerospike Spark Connector
===============

Spark glue to efficiently read data from Aerospike

  * Creates schema RDD from AQL statement (including determining datatypes on the single row query) or just RDD[Row] if not to be used with SparkSQL context
  * Queries local Aoerospike nodes in parallel (allows parrallel reads from single server for range queries)
  
Example use:

```
import com.osscube.spark.aerospike.rdd._;import org.apache.spark.sql._
val sqlContext = new SQLContext(sc)
val aero  = sc.aeroSInput(("192.168.142.162" , 3000), "select column1,column1,intColumn1 from test.one_million where intColumn1 between -10000000 and 10000000", sqlContext)
aero.registerTempTable("aero")
sqlContext.sql("select avg(intColumn1) from aero where intColumn1 < 0").collect

```
(Assumes there is an numeric index on intColumn1)


<commit_msg>Added number of partitions per range to example<commit_after>Aerospike Spark Connector
===============

Spark glue to efficiently read data from Aerospike

  * Creates schema RDD from AQL statement (including determining datatypes on the single row query) or just RDD[Row] if not to be used with SparkSQL context
  * Queries local Aoerospike nodes in parallel (allows parrallel reads from single server for range queries)
  
Example use:

```
import com.osscube.spark.aerospike.rdd._;import org.apache.spark.sql._
val sqlContext = new SQLContext(sc)
val aero  = sc.aeroSInput(("192.168.142.162" , 3000), "select column1,column1,intColumn1 from test.one_million where intColumn1 between -10000000 and 10000000", sqlContext ,6)
aero.registerTempTable("aero")
sqlContext.sql("select avg(intColumn1) from aero where intColumn1 < 0").collect

```
(Assumes there is an numeric index on intColumn1, creates 6 partitions per server)




{'fraction_non_alphanumeric': 0.09299719887955182, 'fraction_numerical': 0.04593837535014006, 'mean_word_length': 5.401433691756273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5464132', 'n_tokens_mistral': 614, 'n_tokens_neox': 524, 'n_words': 195}