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 ¶
- Variables
- func GetFieldNull(record api.Record, fieldPath string) (interface{}, error)
- func GetTypedNullFieldFromScript(scriptObject interface{}) (*api.Field, error)
- func GetTypedNullFromField(field *api.Field) (interface{}, error)
- func NewScriptRecord(record api.Record, scriptObject interface{}) (map[string]interface{}, error)
- type ScriptObjectFactory
- type TypedNull
Constants ¶
This section is empty.
Variables ¶
var NULL_BOOLEAN interface{} = &TypedNull{Type: fieldtype.BOOLEAN}
var NULL_BYTE interface{} = &TypedNull{Type: fieldtype.BYTE}
var NULL_BYTE_ARRAY interface{} = &TypedNull{Type: fieldtype.BYTE_ARRAY}
var NULL_CHAR interface{} = &TypedNull{Type: fieldtype.STRING}
var NULL_DECIMAL interface{} = &TypedNull{Type: fieldtype.DECIMAL}
var NULL_DOUBLE interface{} = &TypedNull{Type: fieldtype.DOUBLE}
var NULL_FLOAT interface{} = &TypedNull{Type: fieldtype.FLOAT}
var NULL_INTEGER interface{} = &TypedNull{Type: fieldtype.INTEGER}
var NULL_LIST interface{} = &TypedNull{Type: fieldtype.LIST}
var NULL_LONG interface{} = &TypedNull{Type: fieldtype.LONG}
var NULL_MAP interface{} = &TypedNull{Type: fieldtype.MAP}
var NULL_SHORT interface{} = &TypedNull{Type: fieldtype.SHORT}
var NULL_STRING interface{} = &TypedNull{Type: fieldtype.STRING}
Functions ¶
func GetTypedNullFromField ¶
Types ¶
type ScriptObjectFactory ¶
type ScriptObjectFactory struct {
Context api.StageContext
}
func (*ScriptObjectFactory) CreateScriptRecord ¶
func (s *ScriptObjectFactory) CreateScriptRecord(record api.Record) (map[string]interface{}, error)