public class ReplaceIndex extends Object implements Step
| Constructor and Description |
|---|
ReplaceIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Properties properties)
Bind the set of provided properties to the input step.
|
void |
execute()
Perform the actual work of the step.
|
protected static org.joda.time.DateTime |
getTimeSlice(org.joda.time.DateTime dt,
org.joda.time.Duration duration) |
protected static org.joda.time.DateTime |
getUTCTimeSlice(org.joda.time.DateTime dateTime,
org.joda.time.Duration duration) |
protected static org.joda.time.DateTime |
plusDSTAware(org.joda.time.DateTime dateTime,
org.joda.time.Duration duration) |
void |
setSession(com.datastax.driver.core.Session session)
Invoked prior to
Step.execute(). |
String |
toString() |
public void setSession(com.datastax.driver.core.Session session)
StepStep.execute(). Note that this is the same session used by SchemaManager and it
should not be closed.setSession in interface Steppublic void bind(Properties properties)
StepBind the set of provided properties to the input step. The text should have all the variable to be bound in %variable_name% form.
This method should be called even if no properties are provided because it will throw a runtime exception if the text contains properties that are expected to be bound but the list of variable is either empty or does not contain them.
This method is invoked prior to Step.execute()
public void execute()
Stepprotected static org.joda.time.DateTime getTimeSlice(org.joda.time.DateTime dt,
org.joda.time.Duration duration)
protected static org.joda.time.DateTime getUTCTimeSlice(org.joda.time.DateTime dateTime,
org.joda.time.Duration duration)
protected static org.joda.time.DateTime plusDSTAware(org.joda.time.DateTime dateTime,
org.joda.time.Duration duration)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.