Documentation ¶
Index ¶
- Variables
- type JSONReader
- func (r *JSONReader) Close(ctx context.Context) error
- func (r *JSONReader) GetSchema() schema.Schema
- func (r *JSONReader) ReadRow(ctx context.Context) (row.Row, error)
- func (r *JSONReader) ReadSqlRow(ctx context.Context) (sql.Row, error)
- func (r *JSONReader) VerifySchema(sch schema.Schema) (bool, error)
- type JSONWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ReadBufSize = 256 * 1024
View Source
var WriteBufSize = 256 * 1024
Functions ¶
This section is empty.
Types ¶
type JSONReader ¶
type JSONReader struct {
// contains filtered or unexported fields
}
func NewJSONReader ¶
func NewJSONReader(vrw types.ValueReadWriter, r io.ReadCloser, sch schema.Schema) (*JSONReader, error)
func OpenJSONReader ¶
func OpenJSONReader(vrw types.ValueReadWriter, path string, fs filesys.ReadableFS, sch schema.Schema) (*JSONReader, error)
func (*JSONReader) Close ¶
func (r *JSONReader) Close(ctx context.Context) error
Close should release resources being held
func (*JSONReader) GetSchema ¶
func (r *JSONReader) GetSchema() schema.Schema
GetSchema gets the schema of the rows that this reader will return
func (*JSONReader) ReadSqlRow ¶
func (*JSONReader) VerifySchema ¶
func (r *JSONReader) VerifySchema(sch schema.Schema) (bool, error)
VerifySchema checks that the incoming schema matches the schema from the existing table
type JSONWriter ¶
type JSONWriter struct {
// contains filtered or unexported fields
}
func NewJSONWriter ¶
func NewJSONWriter(wr io.WriteCloser, outSch schema.Schema) (*JSONWriter, error)
func (*JSONWriter) Close ¶
func (jsonw *JSONWriter) Close(ctx context.Context) error
Close should flush all writes, release resources being held
func (*JSONWriter) GetSchema ¶
func (jsonw *JSONWriter) GetSchema() schema.Schema
func (*JSONWriter) WriteSqlRow ¶
Click to show internal directories.
Click to hide internal directories.