Available Methods
- Field ( )
- getType ( )
- getFields ( )
- createRecord ( )
- Type ( )
- create ( )
- setFields ( )
- getTypes ( )
- getField ( )
- createUnion ( )
- Parser ( )
- addProp ( )
- parse ( )
- toString ( )
- createArray ( )
- getName ( )
- getLogicalType ( )
- getElementType ( )
- getProp ( )
- getFullName ( )
- getValueType ( )
- getObjectProp ( )
- createMap ( )
- createFixed ( )
- getFixedSize ( )
- createEnum ( )
- getEnumSymbols ( )
- equals ( )
- applyAliases ( )
- getJsonProps ( )
- getNamespace ( )
- hasEnumSymbol ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.io.InputStream
- java.io.OutputStream
- java.io.ByteArrayOutputStream
- java.io.ByteArrayInputStream
- java.util.stream.Collectors
- java.nio.ByteBuffer
- org.junit.Assert
- java.util.Optional
- java.nio.charset.StandardCharsets
- java.math.BigDecimal
- org.apache.commons.lang3.StringUtils
- java.sql.SQLException
- com.google.common.collect.Lists
- java.sql.ResultSet
- com.google.common.collect.ImmutableList
- com.google.common.collect.ImmutableMap
- com.google.common.base.Preconditions
- org.junit.jupiter.api.Test
- org.testng.annotations.Test
- org.apache.hadoop.conf.Configuration
- org.apache.hadoop.fs.Path
- org.testng.Assert
Java Code Examples for org.apache.avro.Schema#getJsonProps()
The following examples show how to use
org.apache.avro.Schema#getJsonProps() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AvroUtils.java From incubator-gobblin with Apache License 2.0 | 5 votes |
/*** * Copy properties from old Avro Schema to new Avro Schema * @param oldSchema Old Avro Schema to copy properties from * @param newSchema New Avro Schema to copy properties to */ private static void copyProperties(Schema oldSchema, Schema newSchema) { Preconditions.checkNotNull(oldSchema); Preconditions.checkNotNull(newSchema); Map<String, JsonNode> props = oldSchema.getJsonProps(); copyProperties(props, newSchema); }
Example 2
Source File: AvroFlattener.java From incubator-gobblin with Apache License 2.0 | 5 votes |
/*** * Copy properties from old Avro Schema to new Avro Schema * @param oldSchema Old Avro Schema to copy properties from * @param newSchema New Avro Schema to copy properties to */ private static void copyProperties(Schema oldSchema, Schema newSchema) { Preconditions.checkNotNull(oldSchema); Preconditions.checkNotNull(newSchema); Map<String, JsonNode> props = oldSchema.getJsonProps(); copyProperties(props, newSchema); }