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.
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 ¶
const ( ArrayObjects = "ARRAY_OBJECTS" MultipleObjects = "MULTIPLE_OBJECTS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonReaderFactoryImpl ¶
type JsonReaderFactoryImpl struct {
recordio.AbstractRecordReaderFactory
}
func (*JsonReaderFactoryImpl) CreateReader ¶
func (j *JsonReaderFactoryImpl) CreateReader( context api.StageContext, reader io.Reader, messageId string, ) (dataformats.RecordReader, error)
type JsonReaderImpl ¶
type JsonReaderImpl struct {
// contains filtered or unexported fields
}
func (*JsonReaderImpl) Close ¶
func (jsonReader *JsonReaderImpl) Close() error
func (*JsonReaderImpl) ReadRecord ¶
func (jsonReader *JsonReaderImpl) ReadRecord() (api.Record, error)
type JsonWriterFactoryImpl ¶
type JsonWriterFactoryImpl struct {
Mode string
}
func (*JsonWriterFactoryImpl) CreateWriter ¶
func (j *JsonWriterFactoryImpl) CreateWriter( context api.StageContext, writer io.Writer, ) (dataformats.RecordWriter, error)
type JsonWriterImpl ¶
type JsonWriterImpl struct {
// contains filtered or unexported fields
}
func (*JsonWriterImpl) Close ¶
func (jsonWriter *JsonWriterImpl) Close() error
func (*JsonWriterImpl) Flush ¶
func (jsonWriter *JsonWriterImpl) Flush() error
func (*JsonWriterImpl) WriteRecord ¶
func (jsonWriter *JsonWriterImpl) WriteRecord(r api.Record) error
type RecordCreator ¶
type RecordCreator struct { }
func (*RecordCreator) CreateRecord ¶
func (r *RecordCreator) CreateRecord( context api.StageContext, lineText string, messageId string, headers []*api.Field, ) (api.Record, error)