Skip to content

Commit 56d0ad3

Browse files
committed
build(maven): fix javadoc, add github repository
1 parent b410cd9 commit 56d0ad3

19 files changed

+155
-7
lines changed

connect-file-pulse-api/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,35 @@
4040
<filtering>true</filtering>
4141
</resource>
4242
</resources>
43+
44+
<plugins>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-source-plugin</artifactId>
48+
<version>2.2.1</version>
49+
<executions>
50+
<execution>
51+
<id>attach-sources</id>
52+
<goals>
53+
<goal>jar-no-fork</goal>
54+
</goals>
55+
</execution>
56+
</executions>
57+
</plugin>
58+
<plugin>
59+
<groupId>org.apache.maven.plugins</groupId>
60+
<artifactId>maven-javadoc-plugin</artifactId>
61+
<version>2.9.1</version>
62+
<executions>
63+
<execution>
64+
<id>attach-javadocs</id>
65+
<goals>
66+
<goal>jar</goal>
67+
</goals>
68+
</execution>
69+
</executions>
70+
</plugin>
71+
</plugins>
4372
</build>
4473

4574
<dependencies>

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/ArraySchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class ArraySchema implements Schema {
3030

3131
/**
3232
* Creates a new MapSchema for the specified type.
33+
*
34+
* @param valueSchema the {@link Schema} instance.
3335
*/
3436
ArraySchema(final Schema valueSchema) {
3537
this.type = Type.ARRAY;

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/GettableByName.java

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,71 +39,105 @@ public interface GettableByName extends Serializable {
3939
/**
4040
* Returns the {@code field} content as a Map.
4141
*
42+
* @param field the field name.
43+
* @param <K> the key type
44+
* @param <V> the value type.
45+
* @return the field as map.
46+
*
4247
* @throws DataException if content {@code field} is not of type MAP.
4348
*/
49+
4450
<K, V> Map<K, V> getMap(final String field) throws DataException;
4551

4652
TypedValue get(final String field) throws DataException;
4753

4854
/**
4955
* Returns the {@code field} content as a values.
5056
*
57+
* @param field the field name.
58+
* @return the field as struct.
59+
*
5160
* @throws DataException if content {@code field} is not of type VALUE.
5261
*/
5362
TypedStruct getStruct(final String field) throws DataException;
5463

5564
/**
5665
* Returns the {@code field} content as a collection.
5766
*
67+
* @param field the field name.
68+
* @param <T> the value type.
69+
* @return the field as array.
70+
*
5871
* @throws DataException if content {@code field} is not of type ARRAY.
5972
*/
6073
<T> Collection<T> getArray(final String field) throws DataException;
6174

6275
/**
6376
* Returns the {@code field} content as a boolean.
6477
*
78+
* @param field the field name.
79+
* @return the field as short.
80+
*
6581
* @throws DataException if content {@code field} is not of type INT-16.
6682
*/
6783
Short getShort(final String field) throws DataException;
6884

6985
/**
7086
* Returns the {@code field} content as a double.
7187
*
88+
* @param field the field name.
89+
* @return the field as boolean.
90+
*
7291
* @throws DataException if content {@code field} is not of type BOOLEAN.
7392
*/
7493
Boolean getBoolean(final String field) throws DataException;
7594

7695
/**
7796
* Returns the {@code field} content as an integer.
7897
*
98+
* @param field the field name.
99+
* @return the field as integer.
100+
*
79101
* @throws DataException if content {@code field} is not of type INT32.
80102
*/
81103
Integer getInt(final String field) throws DataException;
82104

83105
/**
84106
* Returns the {@code field} content as a long.
85107
*
108+
* @param field the field name.
109+
* @return the field as long.
110+
*
86111
* @throws DataException if content {@code field} is not of type INT64.
87112
*/
88113
Long getLong(final String field) throws DataException;
89114

90115
/**
91116
* Returns the {@code field} content as a float.
92117
*
118+
* @param field the field name.
119+
* @return the field as float.
120+
*
93121
* @throws DataException if content {@code field} is not of type FLOAT.
94122
*/
95123
Float getFloat(final String field) throws DataException;
96124

97125
/**
98126
* Returns the {@code field} content as a double.
99127
*
128+
* @param field the field double.
129+
* @return the field as float.
130+
*
100131
* @throws DataException if content {@code field} is not of type DOUBLE.
101132
*/
102133
Double getDouble(final String field) throws DataException;
103134

104135
/**
105136
* Returns the {@code field} content as a string.
106137
*
138+
* @param field the field string.
139+
* @return the field as float.
140+
*
107141
* @throws DataException if content {@code field} is not of STRING.
108142
*/
109143
String getString(final String field) throws DataException;

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/LazyArraySchema.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,19 @@ public class LazyArraySchema extends ArraySchema implements Schema {
2727
private Schema valueSchema;
2828

2929
/**
30-
* Creates a new LazyArraySchema for the specified type.
30+
* Creates a new {@link LazyArraySchema} for the specified type.
31+
*
32+
* @param list the {@link List} instance.
3133
*/
3234
LazyArraySchema(final List list) {
3335
super(null);
3436
this.list = list;
3537

3638
}
3739

40+
/**
41+
* {@inheritDoc}
42+
*/
3843
@Override
3944
public Schema valueSchema() {
4045
if (valueSchema == null) {

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/MapSchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public class MapSchema implements Schema {
3333

3434
/**
3535
* Creates a new MapSchema for the specified type.
36+
*
37+
* @param valueSchema the {@link Schema} instance.
3638
*/
3739
MapSchema(final Schema valueSchema) {
3840
this.type = Type.MAP;

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/Schema.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ static StructSchema struct() {
124124
/**
125125
* Gets the schema for type MAP.
126126
*
127+
* @param valueSchema the {@link Schema} instance.
128+
*
127129
* @return the {@link Schema} instance.
128130
*/
129131
static MapSchema map(final Schema valueSchema) {
@@ -133,6 +135,8 @@ static MapSchema map(final Schema valueSchema) {
133135
/**
134136
* Gets the schema for type ARRAY.
135137
*
138+
* @param valueSchema the {@link Schema} instance.
139+
*
136140
* @return the {@link Schema} instance.
137141
*/
138142
static ArraySchema array(final Schema valueSchema) {

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/SettableByName.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
/**
2626
* Collection of (typed) values that can be retrieved by name.
27+
*
28+
* @param <T> the {@link SettableByName} type.
2729
*/
2830
public interface SettableByName<T extends SettableByName> extends Serializable {
2931

@@ -33,6 +35,8 @@ public interface SettableByName<T extends SettableByName> extends Serializable {
3335
* @param field the name of the field.
3436
* @param object the object to put.
3537
* @param type the object type.
38+
*
39+
* @return this instance.
3640
*/
3741
T put(final String field, final Type type, final Object object)
3842
throws DataException;
@@ -42,7 +46,9 @@ T put(final String field, final Type type, final Object object)
4246
*
4347
* @param field the name of the field.
4448
* @param value the object to put.
49+
* @return this instance.
4550
*/
51+
4652
T put(final String field, final TypedStruct value)
4753
throws DataException;
4854

@@ -51,6 +57,9 @@ T put(final String field, final TypedStruct value)
5157
*
5258
* @param field the name of the field.
5359
* @param value the object to put.
60+
* @param <E> the element type.
61+
*
62+
* @return this instance.
5463
*/
5564
<E> T put(final String field, final List<E> value)
5665
throws DataException;
@@ -60,6 +69,9 @@ <E> T put(final String field, final List<E> value)
6069
*
6170
* @param field the name of the field.
6271
* @param value the object to put.
72+
* @param <E> the element type.
73+
*
74+
* @return this instance.
6375
*/
6476
<E> T put(final String field, final E[] value)
6577
throws DataException;
@@ -69,6 +81,10 @@ <E> T put(final String field, final E[] value)
6981
*
7082
* @param field the name of the field.
7183
* @param object the object to put.
84+
* @param <K> the key type.
85+
* @param <V> the value type.
86+
*
87+
* @return this instance.
7288
*/
7389
<K, V> T put(final String field, final Map<K, V> object)
7490
throws DataException;
@@ -78,6 +94,8 @@ <K, V> T put(final String field, final Map<K, V> object)
7894
*
7995
* @param field the name of the field.
8096
* @param object the object to put.
97+
*
98+
* @return this instance.
8199
*/
82100
T put(final String field, final Boolean object)
83101
throws DataException;
@@ -87,6 +105,8 @@ T put(final String field, final Boolean object)
87105
*
88106
* @param field the name of the field.
89107
* @param object the object to put.
108+
*
109+
* @return this instance.
90110
*/
91111
T put(final String field, final Short object)
92112
throws DataException;
@@ -96,6 +116,8 @@ T put(final String field, final Short object)
96116
*
97117
* @param field the name of the field.
98118
* @param object the object to put.
119+
*
120+
* @return this instance.
99121
*/
100122
T put(final String field, final Integer object)
101123
throws DataException;
@@ -105,6 +127,8 @@ T put(final String field, final Integer object)
105127
*
106128
* @param field the name of the field.
107129
* @param object the object to put.
130+
*
131+
* @return this instance.
108132
*/
109133
T put(final String field, final Long object)
110134
throws DataException;
@@ -114,6 +138,8 @@ T put(final String field, final Long object)
114138
*
115139
* @param field the name of the field.
116140
* @param object the object to put.
141+
*
142+
* @return this instance.
117143
*/
118144
T put(final String field, final Double object)
119145
throws DataException;
@@ -123,6 +149,8 @@ T put(final String field, final Double object)
123149
*
124150
* @param field the name of the field.
125151
* @param object the object to put.
152+
*
153+
* @return this instance.
126154
*/
127155
T put(final String field, final Float object)
128156
throws DataException;
@@ -132,6 +160,8 @@ T put(final String field, final Float object)
132160
*
133161
* @param field the name of the field.
134162
* @param object the object to put.
163+
*
164+
* @return this instance.
135165
*/
136166
T put(final String field, final String object)
137167
throws DataException;
@@ -141,6 +171,8 @@ T put(final String field, final String object)
141171
*
142172
* @param field the name of the field.
143173
* @param object the object to put.
174+
*
175+
* @return this instance.
144176
*/
145177
T put(final String field, final byte[] object)
146178
throws DataException;

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/StructSchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public StructSchema() {
4444

4545
/**
4646
* Creates a new {@link StructSchema} instance.
47+
*
48+
* @param fields the collection {@link TypedField} instances.
4749
*/
4850
public StructSchema(final Collection<TypedField> fields) {
4951
this.type = Type.STRUCT;

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/expression/EvaluationContext.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@ public interface EvaluationContext {
2929

3030
/**
3131
* Return the default root context object against which an expression is evaluated.
32+
*
33+
* @return the root {@link Object}.
3234
*/
3335
Object rootObject();
3436

3537
/**
3638
* Return a list of accessors that will be asked in turn to read/write a property.
39+
*
40+
* @return the list of {@link PropertyAccessor} instance.
3741
*/
3842
List<PropertyAccessor> getPropertyAccessors();
3943

4044
/**
4145
* Return a list of converter that will be asked in turn to convert read value into expected type.
46+
*
47+
* @return the list of {@link PropertyConverter} instance.
4248
*/
4349
List<PropertyConverter> getPropertyConverter();
4450

connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/expression/Expression.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ public interface Expression {
3131
/**
3232
* Evaluates the variables defined into the given context.
3333
*
34-
* @param context the expression context.
35-
* @return the object resulting from the expression evaluation.
34+
* @param context the expression context.
35+
* @param expectedType the class of the expected type to return.
36+
* @param <T> the expected type to return.
37+
* @return the object resulting from the expression evaluation.
3638
*/
3739
<T> T readValue(final EvaluationContext context, final Class<T> expectedType);
3840

0 commit comments

Comments
 (0)