File tree Expand file tree Collapse file tree 5 files changed +83
-1
lines changed
iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/collector
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common Expand file tree Collapse file tree 5 files changed +83
-1
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Licensed to the Apache Software Foundation (ASF) under one
3+ * or more contributor license agreements. See the NOTICE file
4+ * distributed with this work for additional information
5+ * regarding copyright ownership. The ASF licenses this file
6+ * to you under the Apache License, Version 2.0 (the
7+ * "License"); you may not use this file except in compliance
8+ * with the License. You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing,
13+ * software distributed under the License is distributed on an
14+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ * KIND, either express or implied. See the License for the
16+ * specific language governing permissions and limitations
17+ * under the License.
18+ */
19+
20+ package org .apache .iotdb .pipe .api .collector ;
21+
22+ import org .apache .iotdb .pipe .api .event .dml .insertion .TabletInsertionEvent ;
23+
24+ import java .util .List ;
25+
26+ public interface DataCollector {
27+ List <TabletInsertionEvent > convertToTabletInsertionEvents (final boolean shouldReport );
28+ }
Original file line number Diff line number Diff line change 2222import org .apache .iotdb .pipe .api .access .Row ;
2323import org .apache .iotdb .pipe .api .event .dml .insertion .TabletInsertionEvent ;
2424
25+ import javax .xml .crypto .Data ;
2526import java .io .IOException ;
2627import java .util .function .BiConsumer ;
2728
2829/**
2930 * Used to collect rows generated by {@link TabletInsertionEvent#processRowByRow(BiConsumer)},
3031 * {@link TabletInsertionEvent#processTablet(BiConsumer)}.
3132 */
32- public interface RowCollector {
33+ public interface RowCollector extends DataCollector {
3334
3435 /**
3536 * Collects a row.
Original file line number Diff line number Diff line change 1+ /*
2+ * Licensed to the Apache Software Foundation (ASF) under one
3+ * or more contributor license agreements. See the NOTICE file
4+ * distributed with this work for additional information
5+ * regarding copyright ownership. The ASF licenses this file
6+ * to you under the Apache License, Version 2.0 (the
7+ * "License"); you may not use this file except in compliance
8+ * with the License. You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing,
13+ * software distributed under the License is distributed on an
14+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ * KIND, either express or implied. See the License for the
16+ * specific language governing permissions and limitations
17+ * under the License.
18+ */
19+
20+ package org .apache .iotdb .pipe .api .collector ;
21+
22+ import org .apache .iotdb .pipe .api .access .Row ;
23+ import org .apache .tsfile .write .record .Tablet ;
24+
25+ import java .io .IOException ;
26+
27+ public interface TabletCollector extends DataCollector {
28+ void collectTablet (Tablet tablet ) throws IOException ;
29+ }
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ private void collectTabletInsertionEvent() {
142142 this .tablet = null ;
143143 }
144144
145+ @ Override
145146 public List <TabletInsertionEvent > convertToTabletInsertionEvents (final boolean shouldReport ) {
146147 collectTabletInsertionEvent ();
147148
Original file line number Diff line number Diff line change 1+ /*
2+ * Licensed to the Apache Software Foundation (ASF) under one
3+ * or more contributor license agreements. See the NOTICE file
4+ * distributed with this work for additional information
5+ * regarding copyright ownership. The ASF licenses this file
6+ * to you under the Apache License, Version 2.0 (the
7+ * "License"); you may not use this file except in compliance
8+ * with the License. You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing,
13+ * software distributed under the License is distributed on an
14+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ * KIND, either express or implied. See the License for the
16+ * specific language governing permissions and limitations
17+ * under the License.
18+ */
19+
20+ package org .apache .iotdb .db .pipe .event .common .tablet ;
21+
22+ public class PipeTabletCollector {
23+ }
You can’t perform that action at this time.
0 commit comments