public class CoreOperatorFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CoreOperatorFactory.Checkpoint<T>
Represents a checkpoint operator which provides restarting point for (partial) failures.
|
static class |
CoreOperatorFactory.Confluent<T>
Represents a confluent operator which provides union of data-sets.
|
static class |
CoreOperatorFactory.Empty<T>
Represents an empty operator which provides empty data-sets.
|
static class |
CoreOperatorFactory.EmptyFragment
An empty operator fragment which requires the target type.
|
static class |
CoreOperatorFactory.Extend<T>
Represents a extend operator which transforms data model objects into other data model types.
|
static class |
CoreOperatorFactory.ExtendFragment
An extend operator fragment which requires the target type.
|
static class |
CoreOperatorFactory.Project<T>
Represents a project operator which transforms data model objects into other data model types.
|
static class |
CoreOperatorFactory.ProjectFragment
An project operator fragment which requires the target type.
|
static class |
CoreOperatorFactory.Restructure<T>
Represents a restructure operator which transforms data model objects into other data model types.
|
static class |
CoreOperatorFactory.RestructureFragment
An restructure operator fragment which requires the target type.
|
Modifier and Type | Field and Description |
---|---|
static String |
CHECKPOINT_NAME
The common instance name of checkpoint operator.
|
static String |
CONFLUENT_NAME
The common instance name of confluent operator.
|
static String |
EMPTY_NAME
The common instance name of empty operator.
|
static String |
EXTEND_NAME
The common instance name of extend operator.
|
static String |
PROJECT_NAME
The common instance name of project operator.
|
static String |
RESTRUCTURE_NAME
The common instance name of restructure operator.
|
static String |
STOP_NAME
The common instance name of stop operator.
|
Constructor and Description |
---|
CoreOperatorFactory() |
Modifier and Type | Method and Description |
---|---|
<T> CoreOperatorFactory.Checkpoint<T> |
checkpoint(Source<T> in)
Returns a new checkpoint operator.
|
<T> CoreOperatorFactory.Confluent<T> |
confluent(Iterable<? extends Source<T>> inputs)
Returns a new confluent operator instance.
|
<T> CoreOperatorFactory.Confluent<T> |
confluent(Source<T>... inputs)
Returns a new confluent operator instance.
|
<T> CoreOperatorFactory.Confluent<T> |
confluent(Source<T> a,
Source<T> b)
Returns a new confluent operator instance.
|
<T> CoreOperatorFactory.Confluent<T> |
confluent(Source<T> a,
Source<T> b,
Source<T> c)
Returns a new confluent operator instance.
|
<T> CoreOperatorFactory.Confluent<T> |
confluent(Source<T> a,
Source<T> b,
Source<T> c,
Source<T> d)
Returns a new confluent operator instance.
|
CoreOperatorFactory.EmptyFragment |
empty()
Returns a new fragment which will be provide an empty operator.
|
<T> CoreOperatorFactory.Empty<T> |
empty(Class<T> type)
Returns a new empty operator instance.
|
<T> CoreOperatorFactory.Empty<T> |
empty(Type type)
Returns a new empty operator instance.
|
CoreOperatorFactory.ExtendFragment |
extend(Source<?> in)
Returns a new fragment which will be provide an extend operator.
|
<T> CoreOperatorFactory.Extend<T> |
extend(Source<?> in,
Class<T> targetType)
Returns a new extend operator instance.
|
CoreOperatorFactory.ProjectFragment |
project(Source<?> in)
Returns a new fragment which will be provide a project operator.
|
<T> CoreOperatorFactory.Project<T> |
project(Source<?> in,
Class<T> targetType)
Returns a new project operator instance.
|
CoreOperatorFactory.RestructureFragment |
restructure(Source<?> in)
Returns a new fragment which will be provide a restructure operator.
|
<T> CoreOperatorFactory.Restructure<T> |
restructure(Source<?> in,
Class<T> targetType)
Returns a new restructure operator instance.
|
void |
stop(Source<?> in)
Terminates the upstream source.
|
public static final String EMPTY_NAME
public static final String STOP_NAME
public static final String CONFLUENT_NAME
public static final String CHECKPOINT_NAME
public static final String PROJECT_NAME
public static final String EXTEND_NAME
public static final String RESTRUCTURE_NAME
public <T> CoreOperatorFactory.Empty<T> empty(Class<T> type)
T
- the data model typetype
- the data model typeIllegalArgumentException
- if the parameter is null
Empty
public <T> CoreOperatorFactory.Empty<T> empty(Type type)
T
- the data model typetype
- the data model typeIllegalArgumentException
- if the parameter is null
Empty
public CoreOperatorFactory.EmptyFragment empty()
empty(Class)
public void stop(Source<?> in)
in
- the upstream sourceIllegalArgumentException
- if the parameter is null
Stop
public <T> CoreOperatorFactory.Confluent<T> confluent(Source<T> a, Source<T> b)
T
- the data model typea
- the upstream source (1)b
- the upstream source (2)IllegalArgumentException
- if the parameters are null
Confluent
public <T> CoreOperatorFactory.Confluent<T> confluent(Source<T> a, Source<T> b, Source<T> c)
T
- the data model typea
- the upstream source (1)b
- the upstream source (2)c
- the upstream source (3)IllegalArgumentException
- if the parameters are null
Confluent
public <T> CoreOperatorFactory.Confluent<T> confluent(Source<T> a, Source<T> b, Source<T> c, Source<T> d)
T
- the data model typea
- the upstream source (1)b
- the upstream source (2)c
- the upstream source (3)d
- the upstream source (4)IllegalArgumentException
- if the parameters are null
Confluent
public <T> CoreOperatorFactory.Confluent<T> confluent(Iterable<? extends Source<T>> inputs)
T
- the data model typeinputs
- the upstream sourcesIllegalArgumentException
- if the parameter is null
Confluent
@SafeVarargs public final <T> CoreOperatorFactory.Confluent<T> confluent(Source<T>... inputs)
T
- the data model typeinputs
- the upstream sourcesIllegalArgumentException
- if the parameter is null
Confluent
public <T> CoreOperatorFactory.Checkpoint<T> checkpoint(Source<T> in)
T
- the data model typein
- the upstream sourceIllegalArgumentException
- if the parameter is null
Checkpoint
public <T> CoreOperatorFactory.Project<T> project(Source<?> in, Class<T> targetType)
T
- the target data model typein
- the upstream sourcetargetType
- the target data model classIllegalArgumentException
- if the parameters are null
project(Source)
,
Project
public CoreOperatorFactory.ProjectFragment project(Source<?> in)
in
- the upstream sourceIllegalArgumentException
- if the parameters are null
project(Source, Class)
public <T> CoreOperatorFactory.Extend<T> extend(Source<?> in, Class<T> targetType)
T
- the target data model typein
- the upstream sourcetargetType
- the target data model classIllegalArgumentException
- if the parameters are null
extend(Source)
,
Extend
public CoreOperatorFactory.ExtendFragment extend(Source<?> in)
in
- the upstream sourceIllegalArgumentException
- if the parameters are null
extend(Source, Class)
public <T> CoreOperatorFactory.Restructure<T> restructure(Source<?> in, Class<T> targetType)
T
- the target data model typein
- the upstream sourcetargetType
- the target data model classIllegalArgumentException
- if the parameters are null
restructure(Source)
,
Restructure
public CoreOperatorFactory.RestructureFragment restructure(Source<?> in)
in
- the upstream sourceIllegalArgumentException
- if the parameters are null
restructure(Source, Class)
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.