Package com.streambase.sb
Class DataType.Checklist
java.lang.Object
com.streambase.sb.DataType.Checklist
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck typesvoidcheck(Collection<DataType> types) Check typesreturn all of the factoriesvoidIndicate that all factories have been added.com.streambase.sb.DataType.Registry.Functorget(CompleteDataType type) Return the factory for the specified CompleteDataType.com.streambase.sb.DataType.Registry.FunctorReturn the factory for the specified DataType.com.streambase.sb.DataType.Registry.Functorget(Schema.Field field) Return the factory for the type of the specified Field.voidRegister the specified factory associated with the specified DataType.voidregister(Collection<DataType> types, com.streambase.sb.DataType.Registry.Functor factory) Convenience method to register the same factory with multiple data types.voidRegister the specified factories with the specifiedDataTypes.
-
Constructor Details
-
Checklist
public Checklist()
-
-
Method Details
-
check
-
check
-
finishedRegistering
public void finishedRegistering()Indicate that all factories have been added. A runtime error will be thrown if a factory has not been registered for one or more DataType's. -
register
Register the specified factory associated with the specified DataType.- Parameters:
type- data type associated with a factoryfactory- a factory
-
register
-
register
public void register(Collection<DataType> types, com.streambase.sb.DataType.Registry.Functor factory) Convenience method to register the same factory with multiple data types.- Parameters:
types- the set of types; callers should consider using an EnumSet<DataType>factory- factory for the data types
-
get
Return the factory for the specified DataType.- Parameters:
type- the DataType- Returns:
- the factory
-
get
Return the factory for the specified CompleteDataType.- Parameters:
type- the CompleteDataType- Returns:
- the factory
-
get
Return the factory for the type of the specified Field.- Parameters:
field- the Field- Returns:
- the factory
-
factories
-