public abstract class ResultStorageCachedBase<V> extends ResultStorageBase<V> implements ResultCacheable<V>
arrayResultType, errorResult, filter, resultSet, safeComparator, safeFilter, safeSoter, serverBase
Constructor and Description |
---|
ResultStorageCachedBase(AbstractServerModuleBase serverBase,
V[] arrayResultType)
コンストラクタ
|
Modifier and Type | Method and Description |
---|---|
boolean |
findCache()
キャッシュヒットチェック
|
abstract String |
getHashKey()
ハッシュキー取得
|
List<V> |
getResult()
ストレージから検索結果を取り出す
|
boolean |
isEnable()
キャッシュ機構が有効かチェック
|
void |
pushCache(String hashKey,
V[] values)
キャッシュに結果を積み込む
|
checkFilter, contains, getError, loadComparator, loadFilter, loadSorter, pushError, pushResult
public ResultStorageCachedBase(AbstractServerModuleBase serverBase, V[] arrayResultType)
serverBase
- arrayResultType
- public boolean findCache()
ResultCacheable
findCache
in interface ResultCacheable<V>
public void pushCache(String hashKey, V[] values)
ResultCacheable
pushCache
in interface ResultCacheable<V>
hashKey
- 検索用のハッシュキーvalues
- 結果レコードpublic List<V> getResult()
ResultStorage
getResult
in interface ResultStorage<V>
getResult
in class ResultStorageBase<V>
public boolean isEnable()
ResultCacheable
isEnable
in interface ResultCacheable<V>
public abstract String getHashKey()
Copyright (C) 2014 Information Analysis Laboratory, NICT
RaSC is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.
RaSC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see (http://www.gnu.org/licenses/) .