mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Checkpoint - working versions of streamed with frontend processes, with validation
This commit is contained in:
@ -70,11 +70,10 @@ public class AbstractFilesystemBackendMetaData extends QBackendMetaData
|
||||
** Fluent setter for basePath
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends AbstractFilesystemBackendMetaData> T withBasePath(String basePath)
|
||||
public AbstractFilesystemBackendMetaData withBasePath(String basePath)
|
||||
{
|
||||
this.basePath = basePath;
|
||||
return (T) this;
|
||||
return (this);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,4 +42,28 @@ public class FilesystemBackendMetaData extends AbstractFilesystemBackendMetaData
|
||||
setBackendType(FilesystemBackendModule.class);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for basePath
|
||||
**
|
||||
*******************************************************************************/
|
||||
public FilesystemBackendMetaData withBasePath(String basePath)
|
||||
{
|
||||
setBasePath(basePath);
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for name
|
||||
**
|
||||
*******************************************************************************/
|
||||
public FilesystemBackendMetaData withName(String name)
|
||||
{
|
||||
setName(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -79,6 +79,6 @@ public class BasicETLCollectSourceFileNamesStep implements BackendStep
|
||||
.withCodeType(QCodeType.JAVA)
|
||||
.withCodeUsage(QCodeUsage.BACKEND_STEP))
|
||||
.withOutputMetaData(new QFunctionOutputMetaData()
|
||||
.addField(new QFieldMetaData(FIELD_SOURCE_FILE_PATHS, QFieldType.STRING))));
|
||||
.withField(new QFieldMetaData(FIELD_SOURCE_FILE_PATHS, QFieldType.STRING))));
|
||||
}
|
||||
}
|
||||
|
@ -76,11 +76,10 @@ public class S3BackendMetaData extends AbstractFilesystemBackendMetaData
|
||||
** Fluent setter for bucketName
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends S3BackendMetaData> T withBucketName(String bucketName)
|
||||
public S3BackendMetaData withBucketName(String bucketName)
|
||||
{
|
||||
this.bucketName = bucketName;
|
||||
return (T) this;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
@ -111,11 +110,10 @@ public class S3BackendMetaData extends AbstractFilesystemBackendMetaData
|
||||
** Fluent setter for accessKey
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends S3BackendMetaData> T withAccessKey(String accessKey)
|
||||
public S3BackendMetaData withAccessKey(String accessKey)
|
||||
{
|
||||
this.accessKey = accessKey;
|
||||
return (T) this;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
@ -146,11 +144,10 @@ public class S3BackendMetaData extends AbstractFilesystemBackendMetaData
|
||||
** Fluent setter for secretKey
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends S3BackendMetaData> T withSecretKey(String secretKey)
|
||||
public S3BackendMetaData withSecretKey(String secretKey)
|
||||
{
|
||||
this.secretKey = secretKey;
|
||||
return (T) this;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
@ -181,11 +178,10 @@ public class S3BackendMetaData extends AbstractFilesystemBackendMetaData
|
||||
** Fluent setter for region
|
||||
**
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends S3BackendMetaData> T withRegion(String region)
|
||||
public S3BackendMetaData withRegion(String region)
|
||||
{
|
||||
this.region = region;
|
||||
return (T) this;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
@ -204,4 +200,28 @@ public class S3BackendMetaData extends AbstractFilesystemBackendMetaData
|
||||
secretKey = interpreter.interpret(secretKey);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for basePath
|
||||
**
|
||||
*******************************************************************************/
|
||||
public S3BackendMetaData withBasePath(String basePath)
|
||||
{
|
||||
setBasePath(basePath);
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for name
|
||||
**
|
||||
*******************************************************************************/
|
||||
public S3BackendMetaData withName(String name)
|
||||
{
|
||||
setName(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user