scripting

package
v0.0.0-...-11310a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright 2018 StreamSets Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2018 StreamSets Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var NULL_BOOLEAN interface{} = &TypedNull{Type: fieldtype.BOOLEAN}
View Source
var NULL_BYTE interface{} = &TypedNull{Type: fieldtype.BYTE}
View Source
var NULL_BYTE_ARRAY interface{} = &TypedNull{Type: fieldtype.BYTE_ARRAY}
View Source
var NULL_CHAR interface{} = &TypedNull{Type: fieldtype.STRING}
View Source
var NULL_DECIMAL interface{} = &TypedNull{Type: fieldtype.DECIMAL}
View Source
var NULL_DOUBLE interface{} = &TypedNull{Type: fieldtype.DOUBLE}
View Source
var NULL_FLOAT interface{} = &TypedNull{Type: fieldtype.FLOAT}
View Source
var NULL_INTEGER interface{} = &TypedNull{Type: fieldtype.INTEGER}
View Source
var NULL_LIST interface{} = &TypedNull{Type: fieldtype.LIST}
View Source
var NULL_LONG interface{} = &TypedNull{Type: fieldtype.LONG}
View Source
var NULL_MAP interface{} = &TypedNull{Type: fieldtype.MAP}
View Source
var NULL_SHORT interface{} = &TypedNull{Type: fieldtype.SHORT}
View Source
var NULL_STRING interface{} = &TypedNull{Type: fieldtype.STRING}

Functions

func GetFieldNull

func GetFieldNull(record api.Record, fieldPath string) (interface{}, error)

func GetTypedNullFieldFromScript

func GetTypedNullFieldFromScript(scriptObject interface{}) (*api.Field, error)

func GetTypedNullFromField

func GetTypedNullFromField(field *api.Field) (interface{}, error)

func NewScriptRecord

func NewScriptRecord(record api.Record, scriptObject interface{}) (map[string]interface{}, error)

Types

type ScriptObjectFactory

type ScriptObjectFactory struct {
	Context api.StageContext
}

func (*ScriptObjectFactory) CreateScriptRecord

func (s *ScriptObjectFactory) CreateScriptRecord(record api.Record) (map[string]interface{}, error)

func (*ScriptObjectFactory) GetRecord

func (s *ScriptObjectFactory) GetRecord(scriptRecord map[string]interface{}) (api.Record, error)

type TypedNull

type TypedNull struct {
	Type string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL