Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
e34a258a
Commit
e34a258a
authored
8 years ago
by
Sean Busbey
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #774 from danburkert/master
[kudu] Update Kudu binding to 0.9.0
parents
68dd10c1
c6ead6f0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
+15
-14
15 additions, 14 deletions
kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
with
16 additions
and
15 deletions
kudu/src/main/java/com/yahoo/ycsb/db/KuduYCSBClient.java
+
15
−
14
View file @
e34a258a
...
...
@@ -158,6 +158,9 @@ public class KuduYCSBClient extends com.yahoo.ycsb.DB {
schema
=
new
Schema
(
columns
);
CreateTableOptions
builder
=
new
CreateTableOptions
();
List
<
String
>
rangePartitionColumns
=
new
ArrayList
<>(
1
);
rangePartitionColumns
.
add
(
KEY
);
builder
.
setRangePartitionColumns
(
rangePartitionColumns
);
builder
.
setNumReplicas
(
numReplicas
);
// create n-1 split keys, which will end up being n tablets master-side
for
(
int
i
=
1
;
i
<
numTablets
+
0
;
i
++)
{
...
...
@@ -229,25 +232,23 @@ public class KuduYCSBClient extends com.yahoo.ycsb.DB {
querySchema
=
COLUMN_NAMES
;
// No need to set the projected columns with the whole schema.
}
else
{
querySchema
=
new
ArrayList
<
String
>(
fields
);
querySchema
=
new
ArrayList
<>(
fields
);
scannerBuilder
.
setProjectedColumnNames
(
querySchema
);
}
KuduPredicate
.
ComparisonOp
comparisonOp
;
PartialRow
lowerBound
=
schema
.
newPartialRow
();
lowerBound
.
addString
(
0
,
startkey
);
scannerBuilder
.
lowerBound
(
lowerBound
);
if
(
recordcount
==
1
)
{
comparisonOp
=
KuduPredicate
.
ComparisonOp
.
EQUAL
;
}
else
{
comparisonOp
=
KuduPredicate
.
ComparisonOp
.
GREATER_EQUAL
;
PartialRow
upperBound
=
schema
.
newPartialRow
()
;
upperBound
.
addString
(
0
,
startkey
+
'\0'
);
scannerBuilder
.
exclusiveUpperBound
(
upperBound
)
;
}
KuduPredicate
keyPredicate
=
KuduPredicate
.
newComparisonPredicate
(
schema
.
getColumnByIndex
(
0
),
comparisonOp
,
startkey
);
KuduScanner
scanner
=
scannerBuilder
.
addPredicate
(
keyPredicate
)
.
limit
(
recordcount
)
// currently noop
.
build
();
scannerBuilder
.
limit
(
recordcount
);
// currently noop
KuduScanner
scanner
=
scannerBuilder
.
build
();
while
(
scanner
.
hasMoreRows
())
{
RowResultIterator
data
=
scanner
.
nextRows
();
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
1
−
1
View file @
e34a258a
...
...
@@ -79,7 +79,7 @@ LICENSE file.
<geode.version>
1.0.0-incubating.M2
</geode.version>
<googlebigtable.version>
0.2.3
</googlebigtable.version>
<infinispan.version>
7.2.2.Final
</infinispan.version>
<kudu.version>
0.
8
.0
</kudu.version>
<kudu.version>
0.
9
.0
</kudu.version>
<openjpa.jdbc.version>
2.1.1
</openjpa.jdbc.version>
<!--<mapkeeper.version>1.0</mapkeeper.version>-->
<mongodb.version>
3.0.3
</mongodb.version>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment