Package org.h2.expression.condition
Class UniquePredicate.Target
- java.lang.Object
-
- org.h2.expression.condition.UniquePredicate.Target
-
- All Implemented Interfaces:
ResultTarget
- Enclosing class:
- UniquePredicate
private static final class UniquePredicate.Target extends java.lang.Object implements ResultTarget
-
-
Field Summary
Fields Modifier and Type Field Description private intcolumnCount(package private) booleanhasDuplicatesprivate LocalResultresult
-
Constructor Summary
Constructors Constructor Description Target(int columnCount, LocalResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(Value... values)Add the row to the result set.longgetRowCount()Get the number of rows.voidlimitsWereApplied()A hint that sorting, offset and limit may be ignored by this result because they were applied during the query.
-
-
-
Field Detail
-
columnCount
private final int columnCount
-
result
private final LocalResult result
-
hasDuplicates
boolean hasDuplicates
-
-
Constructor Detail
-
Target
Target(int columnCount, LocalResult result)
-
-
Method Detail
-
limitsWereApplied
public void limitsWereApplied()
Description copied from interface:ResultTargetA hint that sorting, offset and limit may be ignored by this result because they were applied during the query. This is useful for WITH TIES clause because result may contain tied rows above limit.- Specified by:
limitsWereAppliedin interfaceResultTarget
-
getRowCount
public long getRowCount()
Description copied from interface:ResultTargetGet the number of rows.- Specified by:
getRowCountin interfaceResultTarget- Returns:
- the number of rows
-
addRow
public void addRow(Value... values)
Description copied from interface:ResultTargetAdd the row to the result set.- Specified by:
addRowin interfaceResultTarget- Parameters:
values- the values
-
-