Skip to content

Commit 2f8ed3f

Browse files
committed
Updated for Pilosa 1.0
1 parent 6ab2861 commit 2f8ed3f

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Getting Started
22

3-
<a href="https://github.com/pilosa"><img src="https://img.shields.io/badge/pilosa-v0.8.1-blue.svg"></a>
3+
<a href="https://github.com/pilosa"><img src="https://img.shields.io/badge/pilosa-v1.0-blue.svg"></a>
44

55
This repository contains the dataset and sample code for the [Getting Started](https://www.pilosa.com/docs/getting-started/) section of [Pilosa documentation](https://www.pilosa.com/docs/introduction/).
66

go/startrace.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ func runQueries(client *pilosa.Client, languageNames []string) {
5858
}
5959

6060
// We need to refer to indexes and fields before we can use them in a query.
61-
repository, _ := schema.Index("repository")
62-
stargazer, _ := repository.Field("stargazer")
63-
language, _ := repository.Field("language")
61+
repository := schema.Index("repository")
62+
stargazer := repository.Field("stargazer")
63+
language := repository.Field("language")
6464

6565
// Which repositories did user 14 star:
6666
response, err = client.Query(stargazer.Row(14))
@@ -119,7 +119,7 @@ func runQueries(client *pilosa.Client, languageNames []string) {
119119
fmt.Println()
120120

121121
// Set user 99999 as a stargazer for repository 77777:
122-
_, err = client.Query(stargazer.SetBit(99999, 77777))
122+
_, err = client.Query(stargazer.Set(99999, 77777))
123123
checkErr(err)
124124
fmt.Printf("Set user 99999 as a stargazer for repository 77777\n\n")
125125
}

java/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ This folder contains the sample Star Trace project in Java.
2020
```
2121
7. Run the created JAR with the dataset path and Pilosa server address:
2222
```
23-
java -jar startrace/target/getting-started-0.8.0.jar .. :10101
23+
java -jar startrace/target/getting-started-1.0.0.jar .. :10101

java/startrace/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
<groupId>com.pilosa</groupId>
88
<artifactId>getting-started</artifactId>
9-
<version>0.8.0</version>
9+
<version>1.0.0</version>
1010

1111
<dependencies>
1212
<dependency>
1313
<groupId>com.pilosa</groupId>
1414
<artifactId>pilosa-client</artifactId>
15-
<version>0.8.0</version>
15+
<version>1.0.0</version>
1616
</dependency>
1717
</dependencies>
1818

java/startrace/src/main/java/StarTrace.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private static void runQueries(PilosaClient client, List<String> languageNames)
111111
System.out.println();
112112

113113
// Set user 99999 as a stargazer for repository 77777:
114-
client.query(stargazer.setBit(99999, 77777));
114+
client.query(stargazer.set(99999, 77777));
115115
System.out.printf("Set user 99999 as a stargazer for repository 77777\n\n");
116116
}
117117

python/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pilosa==0.8.0
1+
pilosa==1.0.2

python/startrace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run_queries(client, language_names):
9595
print()
9696

9797
# Set user 99999 as a stargazer for repository 77777:
98-
client.query(stargazer.setbit(99999, 77777))
98+
client.query(stargazer.set(99999, 77777))
9999
print("Set user 99999 as a stargazer for repository 77777\n")
100100

101101
if __name__ == "__main__":

0 commit comments

Comments
 (0)