@InterfaceStability.Evolving public class CartesianProductConfig extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CartesianProductConfig(boolean isPartitioned,
int[] numPartitions,
String[] sources,
CartesianProductFilterDescriptor filterDescriptor)
create config for both cases, used by subclass
|
protected |
CartesianProductConfig(int[] numPartitions,
String[] sources,
CartesianProductFilterDescriptor filterDescriptor)
create config for partitioned case, with specified source vertices order
|
|
CartesianProductConfig(List<String> sources)
create config for fair cartesian product
|
|
CartesianProductConfig(Map<String,Integer> vertexPartitionMap)
create config for partitioned case without filter
|
|
CartesianProductConfig(Map<String,Integer> vertexPartitionMap,
CartesianProductFilterDescriptor filterDescriptor)
create config for partitioned case with filter
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNumPartitions() |
protected static CartesianProductConfig |
fromProto(CartesianProductUserPayload.CartesianProductConfigProto proto) |
protected static CartesianProductConfig |
fromUserPayload(org.apache.tez.dag.api.UserPayload payload) |
CartesianProductFilterDescriptor |
getFilterDescriptor() |
boolean |
getIsPartitioned() |
List<Integer> |
getNumPartitions() |
List<String> |
getSourceVertices() |
protected CartesianProductUserPayload.CartesianProductConfigProto |
toProto(org.apache.tez.dag.api.TezConfiguration conf) |
org.apache.tez.dag.api.UserPayload |
toUserPayload(org.apache.tez.dag.api.TezConfiguration conf) |
protected static CartesianProductUserPayload.CartesianProductConfigProto |
userPayloadToProto(org.apache.tez.dag.api.UserPayload payload) |
public CartesianProductConfig(List<String> sources)
sources - list of names of source vertices or vertex groupspublic CartesianProductConfig(Map<String,Integer> vertexPartitionMap)
vertexPartitionMap - the map from vertex name to its number of partitionspublic CartesianProductConfig(Map<String,Integer> vertexPartitionMap, CartesianProductFilterDescriptor filterDescriptor)
vertexPartitionMap - the map from vertex name to its number of partitionsfilterDescriptor - protected CartesianProductConfig(int[] numPartitions,
String[] sources,
CartesianProductFilterDescriptor filterDescriptor)
numPartitions - sources - filterDescriptor - protected CartesianProductConfig(boolean isPartitioned,
int[] numPartitions,
String[] sources,
CartesianProductFilterDescriptor filterDescriptor)
protected void checkNumPartitions()
public List<String> getSourceVertices()
public List<Integer> getNumPartitions()
public boolean getIsPartitioned()
public CartesianProductFilterDescriptor getFilterDescriptor()
public org.apache.tez.dag.api.UserPayload toUserPayload(org.apache.tez.dag.api.TezConfiguration conf)
throws IOException
IOExceptionprotected CartesianProductUserPayload.CartesianProductConfigProto toProto(org.apache.tez.dag.api.TezConfiguration conf)
protected static CartesianProductUserPayload.CartesianProductConfigProto userPayloadToProto(org.apache.tez.dag.api.UserPayload payload) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionprotected static CartesianProductConfig fromUserPayload(org.apache.tez.dag.api.UserPayload payload) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionprotected static CartesianProductConfig fromProto(CartesianProductUserPayload.CartesianProductConfigProto proto)
Copyright © 2017 Apache Software Foundation. All rights reserved.