public class ImmutableExtract extends Extract
Extract.Extract.TableType| Constructor and Description |
|---|
ImmutableExtract(Extract extract) |
ImmutableExtract(SourceState state,
Extract.TableType type,
String namespace,
String table) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Properties properties)
Populates this instance with values of a
Properties instance. |
void |
addAll(State otherState)
Populates this instance with properties of the other instance.
|
void |
addAllIfNotExist(Properties properties)
Add properties in a
Properties instance that are not in the current instance. |
void |
addAllIfNotExist(State otherState)
Add properties in a
State instance that are not in the current instance. |
void |
addDeltaField(String... deltaFieldName)
Add more delta fields to the existing set of delta fields.
|
void |
addPrimaryKey(String... primaryKeyFieldName)
Add more primary keys to the existing set of primary keys.
|
void |
appendToListProp(String key,
String value)
Appends the input value to a list property that can be retrieved with
State.getPropAsList(java.lang.String). |
void |
overrideWith(Properties properties)
Add properties in a
Properties instance that are in the current instance. |
void |
overrideWith(State otherState)
Add properties in a
State instance that are in the current instance. |
void |
readFields(DataInput in) |
void |
setDeltaFields(String... deltaFieldName)
Set delta fields.
|
void |
setExtractId(String extractId)
Set a (non-globally) unique ID for this
Extract. |
void |
setFullTrue(long extractFullRunTime)
Set full drop date from the given time.
|
void |
setId(String id)
Set the id used for state persistence and logging.
|
void |
setPrimaryKeys(String... primaryKeyFieldName)
Set primary keys.
|
void |
setProp(String key,
Object value)
Set a property.
|
equals, getDeltaFields, getExtractId, getIsFull, getNamespace, getOutputFilePath, getPreviousTableState, getPrimaryKeys, getTable, getType, hashCode, hasTypeappendToSetProp, contains, getId, getProp, getProp, getPropAsBoolean, getPropAsBoolean, getPropAsCaseInsensitiveSet, getPropAsCaseInsensitiveSet, getPropAsDouble, getPropAsDouble, getPropAsInt, getPropAsInt, getPropAsJsonArray, getPropAsList, getPropAsList, getPropAsLong, getPropAsLong, getPropAsSet, getPropAsSet, getPropAsShort, getPropAsShort, getPropAsShortWithRadix, getPropAsShortWithRadix, getProperties, getProperty, getProperty, getPropertyNames, removeProp, removePropsWithPrefix, setProps, toString, writepublic ImmutableExtract(SourceState state, Extract.TableType type, String namespace, String table)
public ImmutableExtract(Extract extract)
public void setFullTrue(long extractFullRunTime)
ExtractsetFullTrue in class ExtractextractFullRunTime - full extract timepublic void setPrimaryKeys(String... primaryKeyFieldName)
ExtractThe order of primary keys does not matter.
setPrimaryKeys in class ExtractprimaryKeyFieldName - primary key namespublic void setDeltaFields(String... deltaFieldName)
ExtractThe order of delta fields does not matter.
setDeltaFields in class ExtractdeltaFieldName - delta field namespublic void setId(String id)
Statepublic void setProp(String key, Object value)
StateBoth key and value are stored as strings.
public void appendToListProp(String key, String value)
StateState.getPropAsList(java.lang.String).
List properties are internally stored as comma separated strings. Adding a value that contains commas (for
example "a,b,c") will essentially add multiple values to the property ("a", "b", and "c"). This is
similar to the way that Configuration works.
appendToListProp in class Statekey - property keyvalue - property value (if it includes commas, it will be split by the commas).public void addAll(Properties properties)
StateProperties instance.addAll in class Stateproperties - a Properties instancepublic void addAll(State otherState)
Statepublic void addAllIfNotExist(Properties properties)
StateProperties instance that are not in the current instance.addAllIfNotExist in class Stateproperties - a Properties instancepublic void addAllIfNotExist(State otherState)
StateState instance that are not in the current instance.addAllIfNotExist in class StateotherState - a State instancepublic void overrideWith(Properties properties)
StateProperties instance that are in the current instance.overrideWith in class Stateproperties - a Properties instancepublic void overrideWith(State otherState)
StateState instance that are in the current instance.overrideWith in class StateotherState - a State instancepublic void readFields(DataInput in) throws IOException
readFields in interface WritableShimreadFields in class StateIOExceptionpublic void setExtractId(String extractId)
ExtractExtract.setExtractId in class ExtractextractId - unique ID for this Extractpublic void addPrimaryKey(String... primaryKeyFieldName)
ExtractaddPrimaryKey in class ExtractprimaryKeyFieldName - primary key namespublic void addDeltaField(String... deltaFieldName)
ExtractaddDeltaField in class ExtractdeltaFieldName - delta field names