Class MutableJsonIndexImpl
- java.lang.Object
-
- org.apache.pinot.segment.local.realtime.impl.json.MutableJsonIndexImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,MutableIndex,MutableJsonIndex,JsonIndexReader
public class MutableJsonIndexImpl extends Object implements MutableJsonIndex
Json index for mutable segment.
-
-
Constructor Summary
Constructors Constructor Description MutableJsonIndexImpl(JsonIndexConfig jsonIndexConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String jsonString)Adds the next json value.voidclose()org.roaringbitmap.buffer.MutableRoaringBitmapgetMatchingDocIds(String filterString)Map<String,org.roaringbitmap.RoaringBitmap>getMatchingDocsMap(String key)String[]getValuesForKeyAndDocs(int[] docIds, Map<String,org.roaringbitmap.RoaringBitmap> matchingDocsMap)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.mutable.MutableJsonIndex
add, add
-
-
-
-
Constructor Detail
-
MutableJsonIndexImpl
public MutableJsonIndexImpl(JsonIndexConfig jsonIndexConfig)
-
-
Method Detail
-
add
public void add(String jsonString) throws IOException
Adds the next json value.- Specified by:
addin interfaceMutableJsonIndex- Throws:
IOException
-
getMatchingDocIds
public org.roaringbitmap.buffer.MutableRoaringBitmap getMatchingDocIds(String filterString)
- Specified by:
getMatchingDocIdsin interfaceJsonIndexReader
-
getMatchingDocsMap
public Map<String,org.roaringbitmap.RoaringBitmap> getMatchingDocsMap(String key)
- Specified by:
getMatchingDocsMapin interfaceJsonIndexReader
-
getValuesForKeyAndDocs
public String[] getValuesForKeyAndDocs(int[] docIds, Map<String,org.roaringbitmap.RoaringBitmap> matchingDocsMap)
- Specified by:
getValuesForKeyAndDocsin interfaceJsonIndexReader
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-