Package mil.nga.geopackage.db
Class FeatureIndexerIdQuery
java.lang.Object
mil.nga.geopackage.db.FeatureIndexerIdQuery
Feature Indexer Id query with nested SQL and arguments
- Since:
- 3.4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the total number of query arguments is above the maximum allowed in a single queryboolean
aboveMaxArguments
(int additionalArgs) Check if the total number of query arguments is above the maximum allowed in a single queryboolean
aboveMaxArguments
(String[] additionalArgs) Check if the total number of query arguments is above the maximum allowed in a single queryvoid
addArgument
(long id) Add an id argumentString[]
getArgs()
Get the argumentsint
getCount()
Get the number of idsgetIds()
Get the set of idsgetSql()
Get the SQL statementboolean
hasId
(long id) Check if the query has the id
-
Constructor Details
-
FeatureIndexerIdQuery
public FeatureIndexerIdQuery()Constructor
-
-
Method Details
-
addArgument
public void addArgument(long id) Add an id argument- Parameters:
id
- id value
-
getCount
public int getCount()Get the number of ids- Returns:
- count
-
getIds
Get the set of ids- Returns:
- ids
-
hasId
public boolean hasId(long id) Check if the query has the id- Parameters:
id
- id- Returns:
- true if has id
-
aboveMaxArguments
public boolean aboveMaxArguments()Check if the total number of query arguments is above the maximum allowed in a single query- Returns:
- true if above the maximum allowed query arguments
-
aboveMaxArguments
Check if the total number of query arguments is above the maximum allowed in a single query- Parameters:
additionalArgs
- additional arguments- Returns:
- true if above the maximum allowed query arguments
-
aboveMaxArguments
public boolean aboveMaxArguments(int additionalArgs) Check if the total number of query arguments is above the maximum allowed in a single query- Parameters:
additionalArgs
- additional argument count- Returns:
- true if above the maximum allowed query arguments
-
getSql
Get the SQL statement- Returns:
- SQL
-
getArgs
Get the arguments- Returns:
- args
-