|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ConnectionAssignmentType>
org.galagosearch.tupleflow.execution.ConnectionAssignmentType
public enum ConnectionAssignmentType
This specifies how input data should be assigned to outputs in a TupleFlow connection.
If a connection output has the "Combined" assignment, that means that each stage instance reading that output will recieve all of the input data. This is the right kind of assignment to use when writing out a single index file, for instance, where you want all the data that was genereated by lots of parsing stage instances.
The "Each" mode means that every output stage instance gets exactly one of the output streams. Notice that a connection can be hashed, so this doesn't necessarily imply a 1-to-1 mapping between inputs and outputs. This is what you want to use when you're trying to distribute data broadly across a cluster of machines.
The "One" mode is not yet supported. The "One" mode, when implemented, will allow each different named output to recieve exactly one share of the input data. The main use case for this is to support building document-distributed indexes.
Connection,
Job| Enum Constant Summary | |
|---|---|
Combined
|
|
Each
|
|
One
|
|
| Method Summary | |
|---|---|
static ConnectionAssignmentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ConnectionAssignmentType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ConnectionAssignmentType Each
public static final ConnectionAssignmentType One
public static final ConnectionAssignmentType Combined
| Method Detail |
|---|
public static final ConnectionAssignmentType[] values()
for(ConnectionAssignmentType c : ConnectionAssignmentType.values())
System.out.println(c);
public static ConnectionAssignmentType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||