Class BasicDataProfilingDataSamplerStore
- java.lang.Object
-
- org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase<BasicDataProfilingDataSamplerStore>
-
- org.apache.hop.execution.sampler.plugins.dataprof.BasicDataProfilingDataSamplerStore
-
- All Implemented Interfaces:
IExecutionDataSamplerStore
public class BasicDataProfilingDataSamplerStore extends ExecutionDataSamplerStoreBase<BasicDataProfilingDataSamplerStore> implements IExecutionDataSamplerStore
-
-
Field Summary
Fields Modifier and Type Field Description protected BasicDataProfilingDataSamplerdataSamplerprotected Map<String,Integer>maxLengthsThe maximum lengths of String fieldsprotected Map<String,IValueMeta>maxMetaThe maximum value metadata of fieldsprotected Map<String,Object>maxValuesThe maximum values of fieldsprotected Map<String,Integer>minLengthsThe minimum lengths of String fieldsprotected Map<String,IValueMeta>minMetaThe minimum metadata of fieldsprotected Map<String,Object>minValuesThe minimum values of fieldsprotected Map<String,Long>nonNullCountersThe counters map for non-null valuesprotected Map<String,Long>nullCountersThe counters map for null valuesprotected Map<String,Map<BasicDataProfilingDataSampler.ProfilingType,RowBuffer>>profileSamplesFor each of the discovered data profiling results we can keep an original row of data in which the value occurs.-
Fields inherited from class org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase
maxRows, rowMeta, rows, samplerMeta
-
-
Constructor Summary
Constructors Constructor Description BasicDataProfilingDataSamplerStore(BasicDataProfilingDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta)BasicDataProfilingDataSamplerStore(BasicDataProfilingDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta, IRowMeta rowMeta, List<Object[]> rows, int maxRows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Integer>getMaxLengths()Gets maxLengthsMap<String,IValueMeta>getMaxMeta()Gets maxMetaMap<String,Object>getMaxValues()Gets maxValuesMap<String,Integer>getMinLengths()Gets minLengthsMap<String,IValueMeta>getMinMeta()Gets minMetaMap<String,Object>getMinValues()Gets minValuesMap<String,Long>getNonNullCounters()Gets nonNullCountersMap<String,Long>getNullCounters()Gets nullCountersMap<String,Map<BasicDataProfilingDataSampler.ProfilingType,RowBuffer>>getProfileSamples()Gets profileSamplesMap<String,RowBuffer>getSamples()Return a map of keys and rows of data.Map<String,ExecutionDataSetMeta>getSamplesMetadata()Get some extra information about the data samples.BasicDataProfilingDataSamplerStoregetStore()voidinit(IVariables variables, IRowMeta inputRowMeta, IRowMeta outputRowMeta)Initializes this sampler storevoidsetMaxLengths(Map<String,Integer> maxLengths)Sets maxLengthsvoidsetMaxMeta(Map<String,IValueMeta> maxMeta)Sets maxMetavoidsetMaxValues(Map<String,Object> maxValues)Sets maxValuesvoidsetMinLengths(Map<String,Integer> minLengths)Sets minLengthsvoidsetMinMeta(Map<String,IValueMeta> minMeta)Sets minMetavoidsetMinValues(Map<String,Object> minValues)Sets minValuesvoidsetNonNullCounters(Map<String,Long> nonNullCounters)Sets nonNullCountersvoidsetNullCounters(Map<String,Long> nullCounters)Sets nullCountersvoidsetProfileSamples(Map<String,Map<BasicDataProfilingDataSampler.ProfilingType,RowBuffer>> profileSamples)Sets profileSamples-
Methods inherited from class org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase
createRowListener, getKeyForStore, getMaxRows, getRowMeta, getRows, getSamplerMeta, setMaxRows, setRowMeta, setRows, setSamplerMeta
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.execution.sampler.IExecutionDataSamplerStore
createRowListener
-
-
-
-
Field Detail
-
dataSampler
protected BasicDataProfilingDataSampler dataSampler
-
minMeta
protected Map<String,IValueMeta> minMeta
The minimum metadata of fields
-
maxMeta
protected Map<String,IValueMeta> maxMeta
The maximum value metadata of fields
-
profileSamples
protected Map<String,Map<BasicDataProfilingDataSampler.ProfilingType,RowBuffer>> profileSamples
For each of the discovered data profiling results we can keep an original row of data in which the value occurs. So for example if we find that the maximum value for field F is 'Z' we can keep a number of rows in which this occurs.
-
-
Constructor Detail
-
BasicDataProfilingDataSamplerStore
public BasicDataProfilingDataSamplerStore(BasicDataProfilingDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta, IRowMeta rowMeta, List<Object[]> rows, int maxRows)
-
BasicDataProfilingDataSamplerStore
public BasicDataProfilingDataSamplerStore(BasicDataProfilingDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta)
-
-
Method Detail
-
getStore
public BasicDataProfilingDataSamplerStore getStore()
- Specified by:
getStorein classExecutionDataSamplerStoreBase<BasicDataProfilingDataSamplerStore>
-
init
public void init(IVariables variables, IRowMeta inputRowMeta, IRowMeta outputRowMeta)
Description copied from interface:IExecutionDataSamplerStoreInitializes this sampler store- Specified by:
initin interfaceIExecutionDataSamplerStore- Overrides:
initin classExecutionDataSamplerStoreBase<BasicDataProfilingDataSamplerStore>- Parameters:
variables- The variables to resolve withinputRowMeta- Transform input row metadataoutputRowMeta- Transform output row metadata
-
getSamples
public Map<String,RowBuffer> getSamples()
Description copied from interface:IExecutionDataSamplerStoreReturn a map of keys and rows of data. Every key represents a different type of sampling data.- Specified by:
getSamplesin interfaceIExecutionDataSamplerStore- Returns:
- The samples map for the sampler store
-
getSamplesMetadata
public Map<String,ExecutionDataSetMeta> getSamplesMetadata()
Description copied from interface:IExecutionDataSamplerStoreGet some extra information about the data samples.- Specified by:
getSamplesMetadatain interfaceIExecutionDataSamplerStore- Returns:
- The metadata map where for every key more information (description) is given about the sampled data.
-
setMinValues
public void setMinValues(Map<String,Object> minValues)
Sets minValues- Parameters:
minValues- value of minValues
-
getMinMeta
public Map<String,IValueMeta> getMinMeta()
Gets minMeta- Returns:
- value of minMeta
-
setMinMeta
public void setMinMeta(Map<String,IValueMeta> minMeta)
Sets minMeta- Parameters:
minMeta- value of minMeta
-
setMaxValues
public void setMaxValues(Map<String,Object> maxValues)
Sets maxValues- Parameters:
maxValues- value of maxValues
-
getMaxMeta
public Map<String,IValueMeta> getMaxMeta()
Gets maxMeta- Returns:
- value of maxMeta
-
setMaxMeta
public void setMaxMeta(Map<String,IValueMeta> maxMeta)
Sets maxMeta- Parameters:
maxMeta- value of maxMeta
-
getNullCounters
public Map<String,Long> getNullCounters()
Gets nullCounters- Returns:
- value of nullCounters
-
setNullCounters
public void setNullCounters(Map<String,Long> nullCounters)
Sets nullCounters- Parameters:
nullCounters- value of nullCounters
-
getNonNullCounters
public Map<String,Long> getNonNullCounters()
Gets nonNullCounters- Returns:
- value of nonNullCounters
-
setNonNullCounters
public void setNonNullCounters(Map<String,Long> nonNullCounters)
Sets nonNullCounters- Parameters:
nonNullCounters- value of nonNullCounters
-
getMinLengths
public Map<String,Integer> getMinLengths()
Gets minLengths- Returns:
- value of minLengths
-
setMinLengths
public void setMinLengths(Map<String,Integer> minLengths)
Sets minLengths- Parameters:
minLengths- value of minLengths
-
getMaxLengths
public Map<String,Integer> getMaxLengths()
Gets maxLengths- Returns:
- value of maxLengths
-
setMaxLengths
public void setMaxLengths(Map<String,Integer> maxLengths)
Sets maxLengths- Parameters:
maxLengths- value of maxLengths
-
getProfileSamples
public Map<String,Map<BasicDataProfilingDataSampler.ProfilingType,RowBuffer>> getProfileSamples()
Gets profileSamples- Returns:
- value of profileSamples
-
setProfileSamples
public void setProfileSamples(Map<String,Map<BasicDataProfilingDataSampler.ProfilingType,RowBuffer>> profileSamples)
Sets profileSamples- Parameters:
profileSamples- value of profileSamples
-
-