|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.linkedin.data.schema.DataSchema
public abstract class DataSchema
DataSchema
represents an schema.
Nested Class Summary | |
---|---|
static class |
DataSchema.Type
Possible types for a DataSchema. |
Constructor Summary | |
---|---|
protected |
DataSchema(DataSchema.Type type)
Constructor. |
Method Summary | |
---|---|
abstract boolean |
equals(java.lang.Object other)
|
DataSchema |
getDereferencedDataSchema()
Return the dereferenced DataSchema by following typerefs. |
DataSchema.Type |
getDereferencedType()
Return the dereferenced native type by following typerefs. |
abstract java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Return the properties of the DataSchema . |
DataSchema.Type |
getType()
Return the type of the DataSchema . |
abstract java.lang.String |
getUnionMemberKey()
Return the union member key for this DataSchema . |
abstract boolean |
hasError()
Return whether the DataSchema has one or more errors. |
abstract int |
hashCode()
|
boolean |
isComplex()
Return whether type is a complex type. |
abstract boolean |
isPrimitive()
Return whether type is a primitive type. |
java.lang.String |
toString()
Print the DataSchema to JSON with space between fields, items, names, values, ... |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DataSchema(DataSchema.Type type)
type
- of the DataSchema
.Method Detail |
---|
public DataSchema.Type getType()
DataSchema
.
DataSchema
.public DataSchema.Type getDereferencedType()
DataSchema.Type.TYPEREF
.
public DataSchema getDereferencedDataSchema()
DataSchema
by following typerefs.
Should never return a TyperefDataSchema
.
DataSchema
by following typerefs.public abstract boolean hasError()
DataSchema
has one or more errors.
DataSchema
has one or more errors.public abstract boolean isPrimitive()
public boolean isComplex()
public abstract java.util.Map<java.lang.String,java.lang.Object> getProperties()
DataSchema
.
Properties will be empty for non-complex types.
DataSchema
.public abstract java.lang.String getUnionMemberKey()
DataSchema
.
This key is used to uniquely identify a member of the union
following the Avro specification.
DataSchema
.public java.lang.String toString()
DataSchema
to JSON with space between fields, items, names, values, ... etc.
toString
in class java.lang.Object
DataSchema
.public abstract boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |