| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Map | |
| private int | |
| private long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addNewQuery(boolean
state of adaptive fetch, which should be used during adding query adaptiveFetch, Query query to be cached query)Add query to being cached and computing adaptive fetch size. |
| private int | Returns: value which meet the constraintsvalue which should be the computed fetch size actualSize)Set maximum and minimum constraints on given value. |
| private int | Returns: value which meet the maximum constraintvalue which should be the computed fetch size actualSize)Set maximum constraint on given value. |
| private int | Returns: value which meet the minimum constraintvalue which should be the computed fetch size actualSize)Set minimum constraint on given value. |
| public boolean | |
| public int | Returns: adaptive fetch size for query or -1 if size doesn't exist/adaptive fetch state is falsestate of adaptive fetch, which should be used during getting fetch size
for query adaptiveFetch, Query query to which we want get adaptive fetch size query)Get adaptive fetch size for given query. |
| public void | removeQuery(boolean
state of adaptive fetch, which should be used during removing fetch size
for query adaptiveFetch, Query query to be removed from caching query)Remove query information from caching. |
| public void | |
| public void | updateQueryFetchSize(boolean
state of adaptive fetch, which should be used during updating fetch
size for query adaptiveFetch, Query query to be updated query, int max row size used during updating information about adaptive fetch
size for given query maximumRowSizeBytes)Update adaptive fetch size for given query. |
| adaptiveFetch | back to summary |
|---|---|
| private boolean adaptiveFetch | |
| adaptiveFetchInfoMap | back to summary |
|---|---|
| private final Map<String, AdaptiveFetchCacheEntry> adaptiveFetchInfoMap | |
| maximumAdaptiveFetchSize | back to summary |
|---|---|
| private int maximumAdaptiveFetchSize | |
| maximumResultBufferSize | back to summary |
|---|---|
| private long maximumResultBufferSize | |
| minimumAdaptiveFetchSize | back to summary |
|---|---|
| private final int minimumAdaptiveFetchSize | |
| AdaptiveFetchCache | back to summary |
|---|---|
| public AdaptiveFetchCache(long maximumResultBufferSize, Properties info) throws SQLException | |
| addNewQuery | back to summary |
|---|---|
| public void addNewQuery(boolean adaptiveFetch, Query query) Add query to being cached and computing adaptive fetch size.
| |
| adjustFetchSize | back to summary |
|---|---|
| private int adjustFetchSize(int actualSize) Set maximum and minimum constraints on given value.
| |
| adjustMaximumFetchSize | back to summary |
|---|---|
| private int adjustMaximumFetchSize(int actualSize) Set maximum constraint on given value.
| |
| adjustMinimumFetchSize | back to summary |
|---|---|
| private int adjustMinimumFetchSize(int actualSize) Set minimum constraint on given value.
| |
| getAdaptiveFetch | back to summary |
|---|---|
| public boolean getAdaptiveFetch() Get state of adaptive fetch.
| |
| getFetchSizeForQuery | back to summary |
|---|---|
| public int getFetchSizeForQuery(boolean adaptiveFetch, Query query) Get adaptive fetch size for given query.
| |
| removeQuery | back to summary |
|---|---|
| public void removeQuery(boolean adaptiveFetch, Query query) Remove query information from caching.
| |
| setAdaptiveFetch | back to summary |
|---|---|
| public void setAdaptiveFetch(boolean adaptiveFetch) Set state of adaptive fetch.
| |
| updateQueryFetchSize | back to summary |
|---|---|
| public void updateQueryFetchSize(boolean adaptiveFetch, Query query, int maximumRowSizeBytes) Update adaptive fetch size for given query.
| |