congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
cascading.property
Code IndexAdd Tabnine to your IDE (free)

How to use cascading.property

Best Java code snippets using cascading.property (Showing top 20 results out of 315)

origin: cwensel/cascading

/**
 * Method buildProperties returns a new {@link Properties} instance with all property values for this type
 * using the given Iterable<Map.Entry<String, String>> of property values as defaults. The given Iterable will not be modified.
 * <p>
 * If no values have been set, all default properties and values will be returned.
 *
 * @return a new Properties instance
 */
public Properties buildProperties( Iterable<Map.Entry<String, String>> defaultProperties )
 {
 return buildProperties( PropertyUtil.createProperties( defaultProperties ) );
 }
origin: cwensel/cascading

public static String getApplicationID( Map<Object, Object> properties )
 {
 if( properties == null )
  return getAppID();
 return PropertyUtil.getProperty( properties, APP_ID, getAppID() );
 }
origin: cwensel/cascading

/**
 * Returns {@code true} if there are properties in the configDef instance.
 *
 * @return true if there are configDef properties
 */
@Override
public boolean hasConfigDef()
 {
 return configDef != null && !configDef.isEmpty();
 }
origin: cwensel/cascading

@Override
protected void addPropertiesTo( Properties properties )
 {
 setApplicationID( properties );
 setApplicationName( properties, name );
 setApplicationVersion( properties, version );
 addApplicationTag( properties, getTags() );
 addApplicationFramework( properties, getFrameworks() );
 setApplicationJarClass( properties, jarClass );
 setApplicationJarPath( properties, jarPath );
 }
}
origin: cwensel/cascading

@Override
public String get( String key )
 {
 return getProperty( properties, key );
 }
} );
origin: cwensel/cascading

public ConfigDef setProperties( ConfigDef configDef, ConfigDef.Mode mode )
 {
 Properties properties = buildProperties();
 for( String name : properties.stringPropertyNames() )
  configDef.setProperty( mode, name, properties.getProperty( name ) );
 return configDef;
 }
origin: cwensel/cascading

/**
 * Method setProperty sets the value to the given key using the {@link Mode#REPLACE} mode.
 *
 * @param key   the key
 * @param value the value
 * @return the current ConfigDef instance
 */
public ConfigDef setProperty( String key, String value )
 {
 return setProperty( Mode.REPLACE, key, value );
 }
origin: cwensel/cascading

protected void addSessionProperties( Map<Object, Object> properties )
 {
 if( properties == null )
  return;
 PropertyUtil.setProperty( properties, CASCADING_FLOW_ID, getID() );
 PropertyUtil.setProperty( properties, "cascading.flow.tags", getTags() );
 AppProps.setApplicationID( properties );
 PropertyUtil.setProperty( properties, "cascading.app.name", makeAppName( properties ) );
 PropertyUtil.setProperty( properties, "cascading.app.version", makeAppVersion( properties ) );
 }
origin: cwensel/cascading

@Override
public Map<Object, Object> getProperties()
 {
 return PropertyUtil.asFlatMap( properties );
 }
origin: cwensel/cascading

/**
 * Method buildProperties returns a new {@link Properties} instance with all property values for this type.
 * <p>
 * If no values have been set, all default properties and values will be returned.
 *
 * @return a new Properties instance
 */
public Properties buildProperties()
 {
 return buildProperties( (Properties) null );
 }
origin: cwensel/cascading

@Override
public Object getProperty( String key )
 {
 return configDef.apply( key, getter );
 }
origin: cwensel/cascading

/**
 * Creates a new AppProps instance.
 *
 * @return AppProps instance
 */
public static AppProps appProps()
 {
 return new AppProps();
 }
origin: cwensel/cascading

public static String getApplicationName( Map<Object, Object> properties )
 {
 return PropertyUtil.getProperty( properties, APP_NAME, (String) null );
 }
origin: cwensel/cascading

/**
 * Method buildProperties returns a new {@link Properties} instance with all property values for this type
 * using the given Map of property values as defaults. The given Map will not be modified.
 * <p>
 * If no values have been set, all default properties and values will be returned.
 *
 * @return a new Properties instance
 */
public Properties buildProperties( Map<Object, Object> defaultProperties )
 {
 return buildProperties( PropertyUtil.createProperties( defaultProperties, null ) );
 }
origin: cwensel/cascading

/**
 * Returns {@code true} if there are properties in the stepConfigDef instance.
 *
 * @return true if there are stepConfigDef properties
 */
@Override
public boolean hasStepConfigDef()
 {
 return stepConfigDef != null && !stepConfigDef.isEmpty();
 }
origin: cwensel/cascading

public static String getApplicationVersion( Map<Object, Object> properties )
 {
 return PropertyUtil.getProperty( properties, APP_VERSION, (String) null );
 }
origin: cwensel/cascading

/**
 * Returns {@code true} if there are properties in the configDef instance.
 *
 * @return true if there are configDef properties
 */
public boolean hasConfigDef()
 {
 return configDef != null && !configDef.isEmpty();
 }
origin: cwensel/cascading

/**
 * Returns {@code true} if there are properties in the stepConfigDef instance.
 *
 * @return true if there are stepConfigDef properties
 */
@Override
public boolean hasStepConfigDef()
 {
 return stepConfigDef != null && !stepConfigDef.isEmpty();
 }
origin: cwensel/cascading

/**
 * Returns {@code true} if there are properties in the nodeConfigDef instance.
 *
 * @return true if there are nodeConfigDef properties
 */
@Override
public boolean hasNodeConfigDef()
 {
 return nodeConfigDef != null && !nodeConfigDef.isEmpty();
 }
origin: cwensel/cascading

/**
 * Returns {@code true} if there are properties in the nodeConfigDef instance.
 *
 * @return true if there are nodeConfigDef properties
 */
@Override
public boolean hasNodeConfigDef()
 {
 return nodeConfigDef != null && !nodeConfigDef.isEmpty();
 }
cascading.property

Most used classes

  • AppProps
  • PropertyUtil
  • ConfigDef
  • ConfigDefPlatformTest$ConfigSubAssembly
  • ConfigDefPlatformTest$IterateInsert
  • ConfigDef$Getter,
  • ConfigDef$Mode,
  • ConfigDef$Setter,
  • Props,
  • UnitOfWorkDef
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now