public class StubUtilities extends java.lang.Object
Constructor and Description |
---|
StubUtilities() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
arrayTokenToByteArray(ArrayToken arrayToken)
Convert ArrayToken to an array of byte.
|
static eu.stratosphere.types.Value[] |
arrayTokenToPactData(ArrayToken arrayToken)
Convert ArrayToken to an array of Value.
|
static UnsignedByteToken[] |
byteArrayToToken(byte[] byteArray)
Convert byte array data to an array of UnsignedByteToken.
|
static java.lang.Object |
convertPactDataToObject(eu.stratosphere.types.Record record,
int fieldNum,
java.lang.Class<? extends eu.stratosphere.types.Value> classType)
Convert PACT data to an object.
|
static Token |
convertPactDataToToken(java.util.Iterator<eu.stratosphere.types.Record> records,
int fieldNum,
java.lang.Class<? extends eu.stratosphere.types.Value> classType)
Convert PACT data to a token.
|
static Token |
convertPactDataToToken(eu.stratosphere.types.Record record,
int fieldNum,
java.lang.Class<? extends eu.stratosphere.types.Value> classType)
Convert PACT data to a token.
|
static void |
convertResultsToCollector(java.util.List<?> resultKeys,
java.util.List<?> resultValues,
eu.stratosphere.util.Collector<eu.stratosphere.types.Record> collector)
Write lists of Java Object keys and values to a Collector.
|
static void |
convertTokenToCollector(java.util.List<Token> tokenList,
eu.stratosphere.util.Collector<eu.stratosphere.types.Record> collector)
Convert a token to PACT data and add to a Collector.
|
static eu.stratosphere.types.Key |
convertTokenToPactKeyData(Token token)
Convert a token to PACT Key data.
|
static eu.stratosphere.types.Value |
convertTokenToPactValueData(Token token)
Convert a token to PACT Value data.
|
static void |
initializeKepler(eu.stratosphere.configuration.Configuration parameters)
Initialize the parts of Kepler required to run the sub-workflow in
the stub.
|
static void |
initializePtolemy()
Initialize Ptolemy.
|
public StubUtilities()
public static void convertResultsToCollector(java.util.List<?> resultKeys, java.util.List<?> resultValues, eu.stratosphere.util.Collector<eu.stratosphere.types.Record> collector)
public static void convertTokenToCollector(java.util.List<Token> tokenList, eu.stratosphere.util.Collector<eu.stratosphere.types.Record> collector) throws IllegalActionException
IllegalActionException
public static eu.stratosphere.types.Value convertTokenToPactValueData(Token token) throws IllegalActionException
IllegalActionException
public static eu.stratosphere.types.Key convertTokenToPactKeyData(Token token) throws IllegalActionException
IllegalActionException
public static java.lang.Object convertPactDataToObject(eu.stratosphere.types.Record record, int fieldNum, java.lang.Class<? extends eu.stratosphere.types.Value> classType)
public static Token convertPactDataToToken(eu.stratosphere.types.Record record, int fieldNum, java.lang.Class<? extends eu.stratosphere.types.Value> classType)
public static UnsignedByteToken[] byteArrayToToken(byte[] byteArray)
public static eu.stratosphere.types.Value[] arrayTokenToPactData(ArrayToken arrayToken) throws IllegalActionException
IllegalActionException
public static byte[] arrayTokenToByteArray(ArrayToken arrayToken) throws IllegalActionException
IllegalActionException
public static Token convertPactDataToToken(java.util.Iterator<eu.stratosphere.types.Record> records, int fieldNum, java.lang.Class<? extends eu.stratosphere.types.Value> classType)
public static void initializeKepler(eu.stratosphere.configuration.Configuration parameters)
public static void initializePtolemy()