public abstract class ResultStorageMultiKey<V,K> extends ResultStorageBase<V>
arrayResultType, errorResult, filter, resultSet, safeComparator, safeFilter, safeSoter, serverBase
Constructor and Description |
---|
ResultStorageMultiKey(AbstractServerModuleBase serverBase,
V[] arrayResultType,
K[] keys,
int maxPerKey)
コンストラクタ
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(V result)
結果と同じレコードを処理済みかチェックする
|
protected abstract K |
getKey(V result)
結果レコードから検索キーを取得する.
|
List<V> |
getResult()
ストレージから検索結果を取り出す
|
boolean |
pushResult(V result)
検索結果をストレージに格納する
|
checkFilter, getError, loadComparator, loadFilter, loadSorter, pushError
public ResultStorageMultiKey(AbstractServerModuleBase serverBase, V[] arrayResultType, K[] keys, int maxPerKey)
serverBase
- サーバベースオブジェクトarrayResultType
- 結果型keys
- キー配列maxPerKey
- 検索結果の上限数public boolean pushResult(V result)
ResultStorage
pushResult
in interface ResultStorage<V>
pushResult
in class ResultStorageBase<V>
result
- 検索結果public List<V> getResult()
ResultStorage
getResult
in interface ResultStorage<V>
getResult
in class ResultStorageBase<V>
public boolean contains(V result)
ResultStorageStreaming
contains
in interface ResultStorageStreaming<V>
contains
in class ResultStorageBase<V>
result
- 結果レコード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/) .