Class ImageBatchReader.MapColumnDefn
java.lang.Object
org.apache.drill.exec.store.image.ImageBatchReader.ColumnDefn
org.apache.drill.exec.store.image.ImageBatchReader.MapColumnDefn
- Enclosing class:
- ImageBatchReader
Responsible for process of the map writer (nested structure).
Not only work with scalar, but also provide an entry point
for create the nested structures, such as List or List-Map in a Map.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexample : { a : 1 } > { a : 1, b : date() }example : { a : 1 } > { a : 1, b : 2.0 }addIntToMap
(TupleWriter writer, String name) example : { a : 1 } > { a : 1, b : 2 }example : { a : 1 } > { a : 1, [ b : "2" ] }addListByte
(String name) example : { a : 1 } > { a : 1, [ 0, -1, 0, -1 ] }addListMap
(String name) example : { a : 1 } > { a : 1, [ { b : 2 } ] }example : { a : 1 } > { a : 1, { b : 2 } }addObject
(String name, TypeProtos.MinorType type) example : { a : 1 } > { a : 1, b : object() }example : { a : 1 } > { a : 1, b : "2" }void
bind
(RowSetLoader loader) builder
(RowSetLoader loader) builder
(TupleWriter writer) void
define
(SchemaBuilder builder) void
Methods inherited from class org.apache.drill.exec.store.image.ImageBatchReader.ColumnDefn
defineText, getName, getOriginName, getWriter
-
Constructor Details
-
MapColumnDefn
-
-
Method Details
-
bind
- Overrides:
bind
in classImageBatchReader.ColumnDefn
-
define
- Specified by:
define
in classImageBatchReader.ColumnDefn
-
load
- Specified by:
load
in classImageBatchReader.ColumnDefn
-
builder
-
builder
-
addText
example : { a : 1 } > { a : 1, b : "2" }- Overrides:
addText
in classImageBatchReader.ColumnDefn
-
addList
example : { a : 1 } > { a : 1, [ b : "2" ] }- Overrides:
addList
in classImageBatchReader.ColumnDefn
-
addListMap
example : { a : 1 } > { a : 1, [ { b : 2 } ] }- Overrides:
addListMap
in classImageBatchReader.ColumnDefn
-
addMap
example : { a : 1 } > { a : 1, { b : 2 } }- Overrides:
addMap
in classImageBatchReader.ColumnDefn
-
addListByte
example : { a : 1 } > { a : 1, [ 0, -1, 0, -1 ] } -
addDouble
example : { a : 1 } > { a : 1, b : 2.0 } -
addDate
example : { a : 1 } > { a : 1, b : date() } -
addObject
example : { a : 1 } > { a : 1, b : object() } -
addIntToMap
example : { a : 1 } > { a : 1, b : 2 }
-