- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.pentaho.di.trans.steps.yamlinput.YamlReader
类的一些代码示例,展示了YamlReader
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlReader
类的具体详情如下:
包路径:org.pentaho.di.trans.steps.yamlinput.YamlReader
类名称:YamlReader
[英]Read YAML files, parse them and convert them to rows and writes these to one or more output streams.
[中]读取YAML文件,解析它们并将其转换为行,然后将它们写入一个或多个输出流。
代码示例来源:origin: pentaho/pentaho-kettle
public void loadFile( FileObject file ) throws Exception {
this.file = file;
this.filename = KettleVFS.getFilename( file );
loadFile( filename );
}
代码示例来源:origin: pentaho/pentaho-kettle
@SuppressWarnings( "unchecked" )
private void getNextDocument() {
// See if we have another document
if ( this.documenti.hasNext() ) {
// We have another document
this.document = this.documenti.next();
if ( !isMapUsed() ) {
List<Object> list = (List<Object>) getDocument();
dataListi = list.iterator();
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void loadFile( String filename ) throws Exception {
this.filename = filename;
this.file = KettleVFS.getFileObject( filename );
InputStream is = null;
try {
is = KettleVFS.getInputStream( getFile() );
for ( Object data : getYaml().loadAll( is ) ) {
documents.add( data );
this.useMap = ( data instanceof Map );
}
this.documenti = documents.iterator();
} finally {
if ( is != null ) {
is.close();
}
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void loadString( String string ) throws Exception {
this.string = string;
for ( Object data : getYaml().loadAll( getStringValue() ) ) {
documents.add( data );
this.useMap = ( data instanceof Map );
}
this.documenti = documents.iterator();
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( getDocument() != null ) {
if ( isMapUsed() ) {
Map<Object, Object> map = (Map<Object, Object>) getDocument();
retval = new Object[rowMeta.size()];
for ( int i = 0; i < rowMeta.size(); i++ ) {
Object o = null;
if ( Utils.isEmpty( valueMeta.getName() ) ) {
o = getDocument().toString();
} else {
o = map.get( valueMeta.getName() );
retval[i] = getValue( o, valueMeta );
finishDocument();
} else {
if ( dataList != null ) {
List<Object> list = (List<Object>) getDocument();
if ( list.size() == 1 ) {
Iterator<Object> it = list.iterator();
Object o = null;
if ( Utils.isEmpty( valueMeta.getName() ) ) {
o = getDocument().toString();
} else {
o = map.get( valueMeta.getName() );
retval[i] = getValue( o, valueMeta );
代码示例来源:origin: pentaho/pentaho-kettle
wFields.removeAll();
yaml = new YamlReader();
yaml.loadFile( inputList.getFile( 0 ) );
RowMeta row = yaml.getFields();
if ( yaml != null ) {
try {
yaml.close();
} catch ( Exception e ) { /* Ignore */
代码示例来源:origin: pentaho/pentaho-kettle
data.yaml = new YamlReader();
data.yaml.loadFile( KettleVFS.getFileObject( Fieldvalue, getTransMeta() ) );
addFileToResultFilesname( data.yaml.getFile() );
data.yaml = new YamlReader();
data.yaml.loadString( Fieldvalue );
代码示例来源:origin: pentaho/pentaho-kettle
data.yaml = new YamlReader();
data.yaml.loadFile( data.file );
代码示例来源:origin: pentaho/pentaho-kettle
public void dispose( StepMetaInterface smi, StepDataInterface sdi ) {
meta = (YamlInputMeta) smi;
data = (YamlInputData) sdi;
if ( data.yaml != null ) {
try {
data.yaml.close();
} catch ( Exception e ) {
// Ignore
}
}
if ( data.file != null ) {
try {
data.file.close();
} catch ( Exception e ) {
// Ignore
}
}
super.dispose( smi, sdi );
}
代码示例来源:origin: pentaho/pentaho-kettle
outputRowData = data.yaml.getRow( data.rowMeta );
if ( outputRowData == null ) {
return null;
在我的 ZF2 应用程序中,我使用 Zend\Di\Di创建我所有的类实例。使用 Zend\Di\Definition\CompilerDefinition 扫描 DI 定义并使用 APC 缓存。这避
为什么人们使用 Spring DI 而不是 JSR330 DI?我看到许多项目仍在高速推进,而 spring DI 却忽视了 JSR330 规范。许多人甚至不知道它的存在。是不是它的营销力度不够,而
我正在使用 spring 制作一个 Web 应用程序,在 web.xml 中我定义了 context-param 来查找 application-context.xml 文件,该文件扫描除 Contr
给定的是 Intel 8086 处理器的汇编程序,它将数组中的数字相加: .model small .stack 100h .data array dw 1,2,3,1,2 sum
.NET 和 Java 都有大量可用的 DI/IoC 容器,并且每个 有许多我发现在不同方面非常有用的模式 与他们合作。我现在正处于我想做等价的地步 JavaScript 中的东西。由于 JavaSc
我有一个使用 Spring 进行 DI 的 Swing 项目,现在我正在尝试迁移到 Eclipse 4 和 OSGi. 使用 Spring 的配置文件,用户可以注释/取消注释 bean,以添加/删除功
Spring 有两种两种类型的 DI:setter DI 和构造 DI。 基于构造函数的 DI 修复了需要注入(inject)依赖项的顺序。基于 Setter 的 DI 不提供此功能。 基于 Sett
TL;博士 在 JCenter 访问 Kodein 核心包是未经授权的。 详情 我们正在使用 Kodein 进行依赖注入(inject),但是当 Gradle 尝试下载任何 org.kodein.*
我已经使用 NInject 一段时间了,现在我将在 Asp.net Core 中开始一个项目。好像NInject cannot be used with Asp.net Core .所以现在我的问题是
目前缺乏有关 DI 主题的文档 - Dependency Injection 。与现有解决方案(Ninject、Autofac、StructureMap)相比,使用内置 DI 有何优点/缺点?默认依赖
我想做的是将两个 Actor (木乃伊 Actor 和爸爸 Actor )传递给小 Actor 。由于使用 actor 引用而不是 actor 是最佳实践,因此我使用 IActorRef 将木乃伊 a
我是 MQL4 的菜鸟,我正在编写我的第一个 EA。 我的目标是获取 ADX 指标的 +DI 和 -DI 的变量。 我使用了 iADX() 函数,如下所示: double a; int OnInit(
我有一个环境,有 4 个相同的设备,我必须连接到这些设备并通过 TCP 连接请求一些参数(每个设备都有其 IP 地址)。 我为需要一些参数的单个设备实现了一个类(如 IP 地址、端口、轮询间隔等...
我正在尝试将 DI(使用 Autofac)引入现有的 Windows 窗体应用程序。 此应用程序有一个基本的插件架构,其中每个插件都显示自己的表单。在启动时,应用程序会扫描已注册的程序集以查找实现 I
我有一个基于 .NET Core API Gateway 的项目。我想引入依赖注入(inject)(di),因为我需要引入的很多包都是基于这种模式的,所以需要使用 IServiceCollection
我正在尝试使用蛋糕模式进行依赖注入(inject),如下所示: trait FooComponent { val foo: Foo trait Foo; } trait AlsoNeedsFo
我即将创建一个桌面应用程序(使用 .NET windows 窗体) 本质上,我想创建一个 n 层应用程序,但我也想要层之间的松散耦合。但是,我不太确定这是否是 Windows 窗体的好方法 现在我只是
我想在我的一个项目中使用依赖注入(inject) (DI)。我写了一个基本的 DI 库,其工作原理如下 let di = new DI(); di.register('screen', Screen)
在: module.directive 'name', -> (scope, element, attr) -> # Whatever implemenation 链接函数的 scope、
我使用这个库https://github.com/smsapi/smsapi-php-client从站点发送短信。但是当我尝试处理服务中的基类时遇到了问题。所以我的问题是有没有办法用参数调用静态方法?
我是一名优秀的程序员,十分优秀!