public final class ColumnSelector extends Object
Constructor and Description |
---|
ColumnSelector()
Create a column selector.
|
Modifier and Type | Method and Description |
---|---|
ColumnSelector |
addExcludes(Collection<String> excludes)
Adds columns to exclude.
|
ColumnSelector |
addExcludes(String... excludes)
Adds columns to exclude.
|
ColumnSelector |
addIncludes(Collection<String> includes)
Adds columns to include.
|
ColumnSelector |
addIncludes(String... includes)
Adds columns to include.
|
RecordTokenType |
filter(RecordTokenType type)
Returns a type consisting of a subset of the given type that matches
this column selector's criteria.
|
String[] |
filterNames(RecordTokenType type)
Returns the names of the fields of given type that match
this column selector's criteria.
|
ColumnSelector |
setMaxDistinctValues(int value)
Sets the maximum number of distinct values to allow.
|
ColumnSelector |
setType(ScalarTokenType type)
Sets the type of columns to include.
|
public ColumnSelector()
public ColumnSelector addIncludes(String... includes)
includes
- the set of columns to includepublic ColumnSelector addIncludes(Collection<String> includes)
includes
- the set of columns to includepublic ColumnSelector addExcludes(String... excludes)
excludes
- the set of columns to excludepublic ColumnSelector addExcludes(Collection<String> excludes)
excludes
- the set of columns to excludepublic ColumnSelector setType(ScalarTokenType type)
type
- the type of columns to includepublic ColumnSelector setMaxDistinctValues(int value)
value
- the max distinct valuespublic RecordTokenType filter(RecordTokenType type)
includes
are specified, include only those specifiedexcludes
are specified, exclude those specifiedtype
is specified, include only those columns matching the given typetype
- the input typepublic String[] filterNames(RecordTokenType type)
includes
are specified, include only those specifiedexcludes
are specified, exclude those specifiedtype
is specified, include only those columns matching the given typetype
- the input typeCopyright © 2021 Actian Corporation. All rights reserved.