public class BulletConfig extends Config
Constructor and Description |
---|
BulletConfig()
Constructor that loads just the defaults.
|
BulletConfig(String file)
Constructor that loads specific file augmented with defaults and validates itself.
|
Modifier and Type | Method and Description |
---|---|
com.yahoo.bullet.record.BulletRecordProvider |
getBulletRecordProvider()
Get the
BulletRecordProvider stored in this BulletConfig instance. |
com.yahoo.bullet.typesystem.Schema |
getSchema() |
static Validator |
getValidator()
Returns a copy of the
Validator used by this config. |
<S> S |
loadConfiguredClass(String classNameKey)
This method loads a given class name (stored in this config) with the class name key and creates an instance of
it by using a constructor that has a single argument for a
BulletConfig . |
void |
merge(Config other)
Merges another Config into this one.
|
BulletConfig |
validate()
Validates and fixes configuration for this config.
|
clear, get, getAll, getAllBut, getAllWithPrefix, getAs, getOrDefault, getOrDefaultAs, getRequiredConfigAs, readYAML, set, toString
public static final String QUERY_DEFAULT_DURATION
public static final String QUERY_MAX_DURATION
public static final String AGGREGATION_DEFAULT_SIZE
public static final String AGGREGATION_MAX_SIZE
public static final String AGGREGATION_COMPOSITE_FIELD_SEPARATOR
public static final String RAW_AGGREGATION_MAX_SIZE
public static final String COUNT_DISTINCT_AGGREGATION_SKETCH_ENTRIES
public static final String COUNT_DISTINCT_AGGREGATION_SKETCH_SAMPLING
public static final String COUNT_DISTINCT_AGGREGATION_SKETCH_FAMILY
public static final String COUNT_DISTINCT_AGGREGATION_SKETCH_RESIZE_FACTOR
public static final String GROUP_AGGREGATION_SKETCH_ENTRIES
public static final String GROUP_AGGREGATION_MAX_SIZE
public static final String GROUP_AGGREGATION_SKETCH_SAMPLING
public static final String GROUP_AGGREGATION_SKETCH_RESIZE_FACTOR
public static final String DISTRIBUTION_AGGREGATION_SKETCH_ENTRIES
public static final String DISTRIBUTION_AGGREGATION_MAX_POINTS
public static final String DISTRIBUTION_AGGREGATION_GENERATED_POINTS_ROUNDING
public static final String TOP_K_AGGREGATION_SKETCH_ENTRIES
public static final String TOP_K_AGGREGATION_SKETCH_ERROR_TYPE
public static final String RESULT_METADATA_ENABLE
public static final String RESULT_METADATA_METRICS
public static final String RESULT_METADATA_METRICS_CONCEPT_KEY
public static final String RESULT_METADATA_METRICS_NAME_KEY
public static final String WINDOW_DISABLE
public static final String WINDOW_MIN_EMIT_EVERY
public static final String RATE_LIMIT_ENABLE
public static final String RATE_LIMIT_MAX_EMIT_COUNT
public static final String RATE_LIMIT_TIME_INTERVAL
public static final String PUBSUB_CONTEXT_NAME
public static final String PUBSUB_CLASS_NAME
public static final String STORAGE_CLASS_NAME
public static final String METRIC_PUBLISHER_CLASS_NAME
public static final String RECORD_PROVIDER_CLASS_NAME
public static final String RECORD_SCHEMA_FILE_NAME
public static final String QUERY_PARTITIONER_ENABLE
public static final String QUERY_PARTITIONER_CLASS_NAME
public static final String EQUALITY_PARTITIONER_FIELDS
public static final String EQUALITY_PARTITIONER_DELIMITER
public static final long DEFAULT_QUERY_DURATION
public static final long DEFAULT_QUERY_MAX_DURATION
public static final int DEFAULT_AGGREGATION_SIZE
public static final int DEFAULT_AGGREGATION_MAX_SIZE
public static final String DEFAULT_AGGREGATION_COMPOSITE_FIELD_SEPARATOR
public static final int DEFAULT_RAW_AGGREGATION_MAX_SIZE
public static final String QUICKSELECT_SKETCH_FAMILY
public static final String ALPHA_SKETCH_FAMILY
public static final int DEFAULT_COUNT_DISTINCT_AGGREGATION_SKETCH_ENTRIES
public static final float DEFAULT_COUNT_DISTINCT_AGGREGATION_SKETCH_SAMPLING
public static final String DEFAULT_COUNT_DISTINCT_AGGREGATION_SKETCH_FAMILY
public static final int DEFAULT_COUNT_DISTINCT_AGGREGATION_SKETCH_RESIZE_FACTOR
public static final int DEFAULT_GROUP_AGGREGATION_SKETCH_ENTRIES
public static final int DEFAULT_GROUP_AGGREGATION_MAX_SIZE
public static final float DEFAULT_GROUP_AGGREGATION_SKETCH_SAMPLING
public static final int DEFAULT_GROUP_AGGREGATION_SKETCH_RESIZE_FACTOR
public static final int DEFAULT_DISTRIBUTION_AGGREGATION_SKETCH_ENTRIES
public static final int DEFAULT_DISTRIBUTION_AGGREGATION_MAX_POINTS
public static final int DEFAULT_DISTRIBUTION_AGGREGATION_GENERATED_POINTS_ROUNDING
public static final int DEFAULT_TOP_K_AGGREGATION_SKETCH_ENTRIES
public static final String DEFAULT_TOP_K_AGGREGATION_SKETCH_ERROR_TYPE
public static final boolean DEFAULT_RESULT_METADATA_ENABLE
public static final List<Map<String,String>> DEFAULT_RESULT_METADATA_METRICS
public static final boolean DEFAULT_WINDOW_DISABLE
public static final int DEFAULT_WINDOW_MIN_EMIT_EVERY
public static final boolean DEFAULT_RATE_LIMIT_ENABLE
public static final long DEFAULT_RATE_LIMIT_MAX_EMIT_COUNT
public static final long DEFAULT_RATE_LIMIT_TIME_INTERVAL
public static final String DEFAULT_PUBSUB_CONTEXT_NAME
public static final String DEFAULT_PUBSUB_CLASS_NAME
public static final String DEFAULT_RECORD_PROVIDER_CLASS_NAME
public static final boolean DEFAULT_QUERY_PARTITIONER_ENABLE
public static final String DEFAULT_QUERY_PARTITIONER_CLASS_NAME
public static final String DEFAULT_EQUALITY_PARTITIONER_DELIMITER
public static final int MAXIMUM_EQUALITY_FIELDS
public static final String DEFAULT_CONFIGURATION_NAME
public BulletConfig(String file)
file
- YAML file to load.public BulletConfig()
public com.yahoo.bullet.record.BulletRecordProvider getBulletRecordProvider()
BulletRecordProvider
stored in this BulletConfig instance. This BulletRecordProvider is
created when this BulletConfig is constructed.public com.yahoo.bullet.typesystem.Schema getSchema()
public BulletConfig validate()
Validator
to define the appropriate definitions, casters and defaults to use. You
should call this method before you use the config if you set additional settings to ensure that all configurations
are valid.
This class defines a validator for all the fields it knows about. If you subclass it and define your own fields,
you should getValidator()
and add entries and relationships that you need to validate. Make sure
to call this method from your override if you wish validate your new definitions.
public static Validator getValidator()
Validator
used by this config. You can use this to extend it with more
Validator.Entry
and Validator.Relationship
items.public void merge(Config other)
Config
public <S> S loadConfiguredClass(String classNameKey)
BulletConfig
. It then passes in this config
and returns the constructed instance.S
- The type of the class.classNameKey
- The name of the key which stores the class name to load in this config.RuntimeException
- if there were issues creating an instance. It wraps the real exception.Copyright © 2021. All rights reserved.