org.elasticsearch.index.cache.id.simple
Class SimpleIdReaderCache
java.lang.Object
org.elasticsearch.index.cache.id.simple.SimpleIdReaderCache
- All Implemented Interfaces:
- IdReaderCache
public class SimpleIdReaderCache
- extends Object
- implements IdReaderCache
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIdReaderCache
public SimpleIdReaderCache(Object readerCacheKey,
com.google.common.collect.ImmutableMap<String,SimpleIdReaderTypeCache> types)
readerCacheKey
public Object readerCacheKey()
- Specified by:
readerCacheKey
in interface IdReaderCache
type
public IdReaderTypeCache type(String type)
- Specified by:
type
in interface IdReaderCache
parentIdByDoc
public HashedBytesArray parentIdByDoc(String type,
int docId)
- Specified by:
parentIdByDoc
in interface IdReaderCache
docById
public int docById(String type,
HashedBytesArray id)
- Specified by:
docById
in interface IdReaderCache
canReuse
public HashedBytesArray canReuse(HashedBytesArray id)
- Returns an already stored instance if exists, if not, returns null;
Copyright © 2009-2012. All Rights Reserved.