public final class IndexCosts extends Object implements Comparable<IndexCosts>
Modifier and Type | Field and Description |
---|---|
static IndexCosts |
ENFORCE_DYNAMIC
Enforce index creation (dynamic query terms).
|
static IndexCosts |
ENFORCE_STATIC
Enforce index creation (static query terms).
|
static IndexCosts |
ZERO
No results.
|
Modifier and Type | Method and Description |
---|---|
static IndexCosts |
add(IndexCosts ic1,
IndexCosts ic2)
Adds index costs.
|
int |
compareTo(IndexCosts ic) |
static IndexCosts |
get(int results)
Constructor.
|
int |
results()
Number of expected results.
|
boolean |
tooExpensive(Data data)
Checks if index access is too expensive.
|
String |
toString() |
public static final IndexCosts ENFORCE_STATIC
public static final IndexCosts ENFORCE_DYNAMIC
public static final IndexCosts ZERO
public static IndexCosts get(int results)
results
- number of expected resultspublic static IndexCosts add(IndexCosts ic1, IndexCosts ic2)
ic1
- first costsic2
- second costspublic int results()
public boolean tooExpensive(Data data)
data
- data reference (can be null
)public int compareTo(IndexCosts ic)
compareTo
in interface Comparable<IndexCosts>
Copyright © 2005–2023 BaseX Team. All rights reserved.