Skip to content

Commit 4f5893f

Browse files
authored
Merge pull request #108 from george0st/changes
Yugabyte image & Cleaning
2 parents 1c9fc38 + 57a21ce commit 4f5893f

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
docker network create testnet
4+
docker pull yugabytedb/yugabyte:2024.2.2.2-b2
5+
docker run --name yugabyte -p 9042:9042 -p 7199:7199 -d --network testnet yugabytedb/yugabyte:2024.2.2.2-b2
6+

nifi/cql-processor/nifi-cql-processors/src/main/java/org/george0st/processors/cql/GetCQL.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ public class GetCQL extends AbstractProcessor {
111111
.expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
112112
.build();
113113

114-
// Fetch Size
115-
// Max Rows Per Flow File
116-
// Ouptput Batch Size
117-
114+
// TOBE: Future extension for addition properties
115+
// Fetch Size
116+
// Max Rows Per Flow File
117+
// Output Batch Size
118118

119119
// endregion All Properties
120120

nifi/cql-processor/nifi-cql-processors/src/main/java/org/george0st/processors/cql/PutCQL.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class PutCQL extends AbstractProcessor {
9292
public static final PropertyDescriptor BATCH_SIZE = new PropertyDescriptor
9393
.Builder()
9494
.name("Batch Size")
95-
.description("Size of batch for data ingest (in one operation).")
95+
.description("Batch size for data ingest (in one operation).")
9696
.required(false)
9797
.defaultValue("200")
9898
.addValidator(StandardValidators.POSITIVE_LONG_VALIDATOR)
@@ -149,6 +149,10 @@ protected void init(final ProcessorInitializationContext context) {
149149
relationships = Set.of(REL_SUCCESS, REL_FAILURE);
150150
}
151151

152+
/**
153+
* Mapping old and new properties for migration support
154+
* @param config
155+
*/
152156
@Override
153157
public void migrateProperties(final PropertyConfiguration config) {
154158
// support property migration

nifi/cql-processor/nifi-cql-processors/src/main/java/org/george0st/processors/cql/processor/CqlProcessor.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,4 @@ protected String whereItems(String[] whereItems){
4242
}
4343
return prepareItems.toString();
4444
}
45-
46-
// protected abstract long execute(String fileName) throws IOException;
47-
// protected abstract long executeContent(String data) throws IOException;
48-
// protected abstract long executeContent(byte[] byteArray) throws IOException;
49-
5045
}

nifi/cql-processor/nifi-cql-processors/src/main/java/org/george0st/processors/cql/processor/CsvCqlRead.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ private long executeCore(Writer writer) throws IOException {
3636
ResultSet rs;
3737

3838
// execute CQL
39-
//rs = session.execute(selectStatementSql(session, ((SetupRead)setup).columnNames, ((SetupRead)setup).whereClause));
4039
rs = session.execute(selectStatementSql(session, (SetupRead)setup));
4140

4241
// get columns

nifi/cql-processor/nifi-cql-processors/src/main/java/org/george0st/processors/cql/processor/CsvCqlWrite.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class CsvCqlWrite extends CqlProcessor {
2323

2424
/**
2525
* Write core
26+
*
2627
* @param reader The reader (from different inputs)
2728
* @return The amount of write rows
2829
* @throws IOException

0 commit comments

Comments
 (0)