| Package | Description |
|---|---|
| io.cdap.common.internal.io |
Common IO classes.
|
| Modifier and Type | Method and Description |
|---|---|
static Schema |
Schema.arrayOf(Schema componentSchema)
|
protected Schema |
AbstractSchemaGenerator.doGenerate(com.google.common.reflect.TypeToken<?> typeToken,
Set<String> knownRecords,
boolean acceptRecursion)
Actual schema generation.
|
static Schema |
Schema.enumWith(Class<Enum<?>> enumClass)
|
static Schema |
Schema.enumWith(Iterable<String> values)
|
static Schema |
Schema.enumWith(String... values)
|
Schema |
AbstractSchemaGenerator.generate(Type type) |
Schema |
SchemaGenerator.generate(Type type)
|
Schema |
AbstractSchemaGenerator.generate(Type type,
boolean acceptRecursiveTypes) |
Schema |
SchemaGenerator.generate(Type type,
boolean acceptRecursiveTypes)
|
protected Schema |
ReflectionSchemaGenerator.generateRecord(com.google.common.reflect.TypeToken<?> typeToken,
Set<String> knowRecords,
boolean acceptRecursion) |
protected abstract Schema |
AbstractSchemaGenerator.generateRecord(com.google.common.reflect.TypeToken<?> typeToken,
Set<String> knownRecords,
boolean acceptRecursiveTypes)
Generates a RECORD schema of the given type.
|
Schema |
Schema.getComponentSchema() |
Schema |
ReflectionDatumWriter.getSchema() |
Schema |
Schema.Field.getSchema() |
Schema |
Schema.getUnionSchema(int idx) |
static Schema |
Schema.mapOf(Schema keySchema,
Schema valueSchema)
|
static Schema |
Schema.of(Schema.Type type)
Creates a
Schema for the given type. |
Schema |
SchemaTypeAdapter.read(com.google.gson.stream.JsonReader reader) |
static Schema |
Schema.recordOf(String name)
|
static Schema |
Schema.recordOf(String name,
Iterable<Schema.Field> fields)
|
static Schema |
Schema.recordOf(String name,
Schema.Field... fields)
|
static Schema |
Schema.unionOf(Iterable<Schema> schemas)
|
static Schema |
Schema.unionOf(Schema... schemas)
|
| Modifier and Type | Method and Description |
|---|---|
Map.Entry<Schema,Schema> |
Schema.getMapSchema() |
Map.Entry<Schema,Schema> |
Schema.getMapSchema() |
List<Schema> |
Schema.getUnionSchemas() |
| Modifier and Type | Method and Description |
|---|---|
static Schema |
Schema.arrayOf(Schema componentSchema)
|
<T> DatumWriter<T> |
DatumWriterFactory.create(com.google.common.reflect.TypeToken<T> type,
Schema schema) |
<T> DatumWriter<T> |
ASMDatumWriterFactory.create(com.google.common.reflect.TypeToken<T> type,
Schema schema)
Creates a
DatumWriter that is able to encode given data type with the given Schema. |
<T> DatumReader<T> |
ReflectionDatumReaderFactory.create(com.google.common.reflect.TypeToken<T> type,
Schema schema) |
<T> DatumReader<T> |
DatumReaderFactory.create(com.google.common.reflect.TypeToken<T> type,
Schema schema)
Creates a
DatumReader that can decode object of type T. |
boolean |
Schema.isCompatible(Schema target)
Checks if the given target schema is compatible with this schema, meaning datum being written with this
schema could be projected correctly into the given target schema.
|
static Schema |
Schema.mapOf(Schema keySchema,
Schema valueSchema)
|
static Schema.Field |
Schema.Field.of(String name,
Schema schema)
Creates a
Schema.Field instance with the given name and Schema. |
T |
DatumReader.read(Decoder decoder,
Schema sourceSchema) |
T |
ReflectionDatumReader.read(Decoder decoder,
Schema sourceSchema) |
static Schema |
Schema.unionOf(Schema... schemas)
|
void |
SchemaTypeAdapter.write(com.google.gson.stream.JsonWriter writer,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
static Schema |
Schema.unionOf(Iterable<Schema> schemas)
|
| Constructor and Description |
|---|
ReflectionDatumReader(Schema schema,
com.google.common.reflect.TypeToken<T> type) |
ReflectionDatumWriter(Schema schema) |
SchemaHash(Schema schema) |
Copyright © 2019 CDAP Licensed under the Apache License, Version 2.0.