public class BlockUtils extends Object
Modifier and Type | Field and Description |
---|---|
static ClassConfOption<BlockFactory> |
BLOCK_FACTORY_CLASS
Property describing BlockFactory to use for current application run
|
static ClassConfOption<Object> |
BLOCK_WORKER_CONTEXT_VALUE_CLASS
Property describing block worker context value class to use
|
static BooleanConfOption |
LOG_EXECUTION_STATUS
Property describing whether to log execution status as application runs
|
Modifier and Type | Method and Description |
---|---|
static void |
checkBlockTypes(Block executionBlock,
Object executionStage,
ImmutableClassesGiraphConfiguration conf) |
static <S> BlockFactory<S> |
createBlockFactory(org.apache.hadoop.conf.Configuration conf)
Create new BlockFactory that is specified in the configuration.
|
static void |
initAndCheckConfig(GiraphConfiguration conf)
Initializes configuration, such that running it executes block application.
|
static void |
setAndInitBlockFactoryClass(GiraphConfiguration conf,
Class<? extends BlockFactory<?>> clazz)
Set block factory, and initialize configs with it.
|
static void |
setBlockFactoryClass(org.apache.hadoop.conf.Configuration conf,
Class<? extends BlockFactory<?>> clazz)
Set which BlockFactory class to be used for the application.
|
public static final ClassConfOption<BlockFactory> BLOCK_FACTORY_CLASS
public static final ClassConfOption<Object> BLOCK_WORKER_CONTEXT_VALUE_CLASS
public static final BooleanConfOption LOG_EXECUTION_STATUS
public static <S> BlockFactory<S> createBlockFactory(org.apache.hadoop.conf.Configuration conf)
public static void setBlockFactoryClass(org.apache.hadoop.conf.Configuration conf, Class<? extends BlockFactory<?>> clazz)
public static void setAndInitBlockFactoryClass(GiraphConfiguration conf, Class<? extends BlockFactory<?>> clazz)
public static void initAndCheckConfig(GiraphConfiguration conf)
public static void checkBlockTypes(Block executionBlock, Object executionStage, ImmutableClassesGiraphConfiguration conf)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.