Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AT-969] Update aerospike client to 4.0.8; Support Query API #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phufool
Copy link

@phufool phufool commented Nov 8, 2017

Testing

  1. Tested query API for the cpu_utilization set:
    aql> select * from test.cpu_utilization
    +---------------------------------------------+-------------------+---------------+-------------+
    | PK | avgCpu | timeStamp | trafficType |
    +---------------------------------------------+-------------------+---------------+-------------+
    | "ec2-54-159-69-124.compute-1.amazonaws.com" | 79.42760969673394 | 1510175324188 | "exchange" |
    | "ec2-54-84-112-189.compute-1.amazonaws.com" | 73.41829342827779 | 1510175335763 | "exchange" |
    +---------------------------------------------+-------------------+---------------+-------------+
    2 rows in set (0.028 secs)

Test code:
val stmt = new Statement()
stmt.setNamespace("test")
stmt.setSetName("cpu_utilization")
stmt.setFilter(Filter.equal("trafficType", "exchange"))
UserstoreAerospikeClient.UserProfileSetOps.query(stmt) foreach { m =>
logger.info("PHUTEST map = " + m)
}

Output:
Map(ec2-54-159-69-124.compute-1.amazonaws.com -> (gen:16),(exp:250464224),(bins:(timeStamp:1510176224164),(avgCpu:78.23558607858752),(trafficType:exchange)), ec2-54-84-112-189.compute-1.amazonaws.com -> (gen:16),(exp:250464235),(bins:(timeStamp:1510176235721),(avgCpu:73.03427051274991),(trafficType:exchange)))

@phufool phufool changed the title Update aerospike client to 4.0.8; Support Query API [AT-AT-969] Update aerospike client to 4.0.8; Support Query API Nov 9, 2017
@phufool phufool changed the title [AT-AT-969] Update aerospike client to 4.0.8; Support Query API [AT-969] Update aerospike client to 4.0.8; Support Query API Nov 9, 2017
Copy link

@andrewhwangxad andrewhwangxad left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link

@xun-gong xun-gong left a comment

Choose a reason for hiding this comment

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

looks good

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