public class IlvPathPartitioner extends IlvColumnValuePartitioner<IlvPathClusterId>
For this partitioner, all IlvClusterId
s are of type
IlvPathClusterId
.
IlvPathClusterId
,
IlvPathPartitionerFactory
Constructor and Description |
---|
IlvPathPartitioner(IlvObjectModelWithColumns model,
IlvDataColumnInfo column,
String separators,
boolean ignoreLeadingSeparators,
boolean ignoreTrailingSeparators,
int maxDepth,
boolean uniqueKeys)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
IlvClassifier<IlvPathClusterId> |
createClassifier(Object parent,
IlvClassifier outerClassifier,
IlvClusterId outerParentClusterId)
Creates a classifier that can evaluate the children objects of the given
parent object one by one.
|
protected String |
preprocess(String value)
Preprocesses a value, as returned from the model, so as to bring it into
the form: word [separators] word [separators] ...
|
dispose, getColumn, getColumnIndex, getModel
addPartitionerListener, fireEvent, removePartitionerListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPartitionerListener, removePartitionerListener
public IlvPathPartitioner(IlvObjectModelWithColumns model, IlvDataColumnInfo column, String separators, boolean ignoreLeadingSeparators, boolean ignoreTrailingSeparators, int maxDepth, boolean uniqueKeys)
model
- The model being partitioned.column
- The column whose values are used for partitioning.separators
- The sequence of characters that are treated as separators.ignoreLeadingSeparators
- true
if leading separators shall be ignored.ignoreTrailingSeparators
- true
if trailing separators shall be ignored.maxDepth
- A limit on the depth of the clusters produced. Use
Integer.MAX_VALUE
for no limit.uniqueKeys
- Set to true
to force clusters even for unique paths.
Usually false
.protected String preprocess(String value)
public IlvClassifier<IlvPathClusterId> createClassifier(Object parent, IlvClassifier outerClassifier, IlvClusterId outerParentClusterId)
parent
- The parent object whose children objects are to be grouped,
or null
.outerClassifier
- The last returned value of this function for the
parent object or its nearest parent, or
null
if this is the first application
of this partitioner to the objects.outerParentClusterId
- The IlvClusterId
that was produced by
the outerClassifier
for the parent object or its
nearest parent. This is null
if
this is the first application of this
partitioner to the objects.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.