public abstract class Match1Type extends Object
Basic use of this class looks something like:
LinkSet linkSet = type.processLinks(RowMatcher.findInternalMatches()); StarTable table = createMatchTable(inTable, linkSet.toSorted());(the sorting is optional).
Constructor and Description |
---|
Match1Type() |
Modifier and Type | Method and Description |
---|---|
static Match1Type |
createEliminateMatchesType(int retainCount)
Factory method returning a type object which eliminates rows forming
part of the same match group.
|
static Match1Type |
createIdentifyType()
Factory method returning a type object which identifies matched rows
by adding some additional columns to the input.
|
abstract StarTable |
createMatchTable(StarTable inTable,
Collection<RowLink> rowLinks)
Generates an output table given an input table and the RowLink sequence
which defines how its rows are related to each other by matching.
|
static Match1Type |
createWideType(int grpSize)
Factory method returning a type object which aligns match groups with
each other in the rows of a new wide table.
|
abstract LinkSet |
processLinks(LinkSet rowLinks)
Performs additional processing specific to this match type
on the raw LinkSet produced by {RowMatcher#findInternalMatches}.
|
public abstract LinkSet processLinks(LinkSet rowLinks)
rowLinks
- link set representing a single-table
(internal) matchpublic abstract StarTable createMatchTable(StarTable inTable, Collection<RowLink> rowLinks)
inTable
- input tablerowLinks
- links resulting from a call to processLinks(uk.ac.starlink.table.join.LinkSet)
public static Match1Type createIdentifyType()
public static Match1Type createEliminateMatchesType(int retainCount)
retainCount
are removed from the output table.
Thus retainCount=0
removes any rows which participate
in matches with other ones, and retainCount=1
leaves just
one from any such group.retainCount
- number of items to retain from each match grouppublic static Match1Type createWideType(int grpSize)
grpSize
versions of
the input table side by side, and where there are exactly
grpSize
matches in a group they form a row.
Rows which are not part of a grpSize
-element match
do not appear in the output.grpSize
- size of group we are interested inCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.