Implement java write support for parquet the different types and cases that can be written is done via multimethods while the actual WriterSupport is reified
Implement java write support for parquet the different types and cases that can be written is done via multimethods while the actual WriterSupport is reified
(check-is-map v)
If v is not null then check that v is an instanceof java.util.Map, if not an exception is thrown
If v is not null then check that v is an instanceof java.util.Map, if not an exception is thrown
(date->int-seconds date)
Convert a date to seconds and return a casted int
Convert a date to seconds and return a casted int
(get-map-schemas schema)
The schema should be a valid hive map and have the format #<GroupType optional group [map-field-name] (MAP) { repeated group map (MAP_KEY_VALUE) { required binary key; optional binary value; } }
The schema should be a valid hive map and have the format #<GroupType optional group [map-field-name] (MAP) { repeated group map (MAP_KEY_VALUE) { required binary key; optional binary value; } }
(java-write-support schema meta)
Returns an instance of WriteSupport that will correctly serialise standard java types compatible with Hive.
Note: Repeated must have List as the original Type and will be a list type groups must be a Map type
Returns an instance of WriteSupport that will correctly serialise standard java types compatible with Hive. Note: Repeated must have List as the original Type and will be a list type groups must be a Map type
Any object other than a Java primitive, the dispatch is based on the Type::originalType
Any object other than a Java primitive, the dispatch is based on the Type::originalType
(write-key-value rconsumer schema k v)
Write a hive map compatible data structure from the schema { repeated group map (MAP_KEY_VALUE) { required binary key; optional binary value; } } Note only the key value parts are written, the group and field for map needs to be created before and ended after this function is called for all key values
Write a hive map compatible data structure from the schema { repeated group map (MAP_KEY_VALUE) { required binary key; optional binary value; } } Note only the key value parts are written, the group and field for map needs to be created before and ended after this function is called for all key values
(write-message-fields rconsumer schema val)
Write the fields of a top level message
Write the fields of a top level message
(write-val rconsumer schema val)
Write a primitive or extend (List Map) value
Write a primitive or extend (List Map) value
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close