Skip to content

Commit 6e0b1a8

Browse files
committed
fix javadoc
1 parent 801eea6 commit 6e0b1a8

21 files changed

+49
-66
lines changed

client/src/main/java/io/hstream/Consumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
import com.google.common.util.concurrent.Service;
44

5-
/** The consumer interface of hstream consumer */
5+
/** The interface for the HStream consumer. */
66
public interface Consumer extends Service {}

client/src/main/java/io/hstream/ConsumerBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.hstream;
22

3+
/** A builder for {@link Consumer}s. */
34
public interface ConsumerBuilder {
45

56
ConsumerBuilder name(String name);

client/src/main/java/io/hstream/HArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.google.protobuf.ListValue;
44

5-
/** a data structure like array */
5+
/** A data structure like array */
66
public class HArray {
77

88
private ListValue delegate;

client/src/main/java/io/hstream/HArrayBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.google.protobuf.ListValue;
44
import com.google.protobuf.util.Values;
55

6-
/** the {@link HArray} constructor */
6+
/** A builder for {@link HArray}s. */
77
public class HArrayBuilder {
88

99
private ListValue.Builder delegate;

client/src/main/java/io/hstream/HRecord.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.google.protobuf.ByteString;
44
import com.google.protobuf.Struct;
55

6-
/** the data structure defined by hstream */
6+
/** A data structure like json object. */
77
public class HRecord {
88

99
private Struct delegate;

client/src/main/java/io/hstream/HRecordBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.google.protobuf.Struct;
44
import com.google.protobuf.util.Values;
55

6-
/** used to construct a {@link HRecord} */
6+
/** A builder for {@link io.hstream.HRecord}s. */
77
public class HRecordBuilder {
88

99
private Struct.Builder structBuilder;
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
package io.hstream;
22

3-
/** the interface that user use to process {@link HRecord} received from server */
3+
/**
4+
* This interface can be implemented by users of {@link io.hstream.Consumer} to receive {@link
5+
* HRecord}s.
6+
*/
47
public interface HRecordReceiver {
58

69
/**
7-
* used to consume {@link HRecord} format message.
10+
* Used to receive {@link HRecord} format message.
811
*
912
* @param receivedHRecord {@link ReceivedHRecord} received from producer
10-
* @param responder {@link Responder} used to ack producer when received message.
13+
* @param responder {@link Responder} used to ack producer when received message
1114
*/
1215
void processHRecord(ReceivedHRecord receivedHRecord, Responder responder);
1316
}

client/src/main/java/io/hstream/HStreamClient.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,69 +3,69 @@
33
import io.hstream.impl.HStreamClientBuilderImpl;
44
import java.util.List;
55

6-
/** HStreamDB Client. */
6+
/** A client for the HStreamDB. */
77
public interface HStreamClient extends AutoCloseable {
88

9-
/** @return {@link HStreamClientBuilder}. */
9+
/** @return a {@link HStreamClientBuilder} */
1010
static HStreamClientBuilder builder() {
1111
return new HStreamClientBuilderImpl();
1212
}
1313

14-
/** @return the {@link ProducerBuilder}. */
14+
/** @return a {@link ProducerBuilder} */
1515
ProducerBuilder newProducer();
1616

17-
/** @return the {@link ConsumerBuilder}. */
17+
/** @return a {@link ConsumerBuilder} */
1818
ConsumerBuilder newConsumer();
1919

20-
/** @return the {@link QueryerBuilder}. */
20+
/** @return a {@link QueryerBuilder} */
2121
QueryerBuilder newQueryer();
2222

2323
/**
24-
* create a new stream with 3 replicas.
24+
* Create a new stream with 3 replicas.
2525
*
26-
* @param stream the name of stream.
26+
* @param stream the name of stream
2727
*/
2828
void createStream(String stream);
2929

3030
/**
31-
* create a new stream.
31+
* Create a new stream.
3232
*
33-
* @param stream the name of stream.
33+
* @param stream the name of stream
3434
*/
3535
void createStream(String stream, short replicationFactor);
3636

3737
/**
38-
* Delete specified stream with streamName.
38+
* Delete the specified stream with streamName.
3939
*
40-
* @param stream the name of stream.
40+
* @param stream the name of stream
4141
*/
4242
void deleteStream(String stream);
4343

4444
/**
45-
* Return all created {@link Stream}.
45+
* List all streams.
4646
*
47-
* @return the list of created streams.
47+
* @return a list of {@link Stream}s
4848
*/
4949
List<Stream> listStreams();
5050

5151
/**
5252
* Create a new Subscription.
5353
*
54-
* @param subscription {@link Subscription}.
54+
* @param subscription {@link Subscription}
5555
*/
5656
void createSubscription(Subscription subscription);
5757

5858
/**
59-
* Return all created {@link Subscription}.
59+
* List all subscriptions.
6060
*
61-
* @return the list of created Subscriptions.
61+
* @return a list of {@link Subscription}s.
6262
*/
6363
List<Subscription> listSubscriptions();
6464

6565
/**
66-
* Delete specified subscription with subscriptionId.
66+
* Delete the specified subscription with subscriptionId.
6767
*
68-
* @param subscriptionId the id of the subscription to be deleted.
68+
* @param subscriptionId the id of the subscription to be deleted
6969
*/
7070
void deleteSubscription(String subscriptionId);
7171
}

client/src/main/java/io/hstream/HStreamClientBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.hstream;
22

3+
/** A builder for {@link HStreamClient}s. */
34
public interface HStreamClientBuilder {
45

56
HStreamClientBuilder serviceUrl(String serviceUrl);

client/src/main/java/io/hstream/Observer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.hstream;
22

3-
/** Receives notifications from an observable stream of results */
3+
/** An object used to receive results of a {@link Queryer}. */
44
public interface Observer<V> {
55

66
/**

0 commit comments

Comments
 (0)