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