File tree 2 files changed +7
-5
lines changed
marklogic-client-api/src/main/java/com/marklogic/client/datamovement 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public class JacksonCSVSplitter implements Splitter<JacksonHandle> {
45
45
private ArrayNode headers = null ;
46
46
47
47
/**
48
+ * The CsvMapper configured for the current instance.
48
49
* @return the CsvMapper for the current instance.
49
50
*/
50
51
public CsvMapper getCsvMapper () {
@@ -72,6 +73,7 @@ public JacksonCSVSplitter withCsvMapper(CsvMapper mapper) {
72
73
}
73
74
74
75
/**
76
+ * The CsvSchema configured for the current instance.
75
77
* @return the CsvSchema for the current instance.
76
78
*/
77
79
public CsvSchema getCsvSchema () {
@@ -123,6 +125,7 @@ public Stream<JacksonHandle> split(Reader input) throws Exception {
123
125
}
124
126
125
127
/**
128
+ * The number of JsonNodes found so far.
126
129
* @return the number of JsonNodes found in the input stream.
127
130
*/
128
131
@ Override
@@ -131,6 +134,7 @@ public long getCount() {
131
134
}
132
135
133
136
/**
137
+ * The headers of the csv file.
134
138
* @return the headers found in the csv file.
135
139
*/
136
140
public ArrayNode getHeaders () {
Original file line number Diff line number Diff line change 22
22
import com .marklogic .client .io .marker .AbstractWriteHandle ;
23
23
24
24
/**
25
- * To facilitate CSV splitting, Splitter allows to implement the split method where the
26
- * incoming input stream is converted to a stream of another object, for example JacksonHandle
27
- * and gives an option to keep a record of the number of objects created using getCount method.
25
+ * Splitter splits an input stream into a Java stream of write handles.
28
26
*/
29
27
public interface Splitter <T extends AbstractWriteHandle > {
30
28
/**
31
- * Converts the incoming input stream to a stream of object T .
29
+ * Converts the incoming input stream to a stream of AbstractWriteHandle objects .
32
30
* @param input is the incoming input stream.
33
- * @return a stream of T .
31
+ * @return a stream of AbstractWriteHandle objects .
34
32
*/
35
33
Stream <T > split (InputStream input ) throws Exception ;
36
34
You can’t perform that action at this time.
0 commit comments