Class RAMStringIndexer
- java.lang.Object
-
- org.apache.cassandra.index.sai.memory.RAMStringIndexer
-
@NotThreadSafe public class RAMStringIndexer extends java.lang.Object
Indexes strings into an on-heap inverted index to be flushed to an on-disk index later. The flushing process uses theTermsIterator
interface to iterate over the indexed terms.
-
-
Constructor Summary
Constructors Constructor Description RAMStringIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
add(org.apache.lucene.util.BytesRef term, int segmentRowId)
long
estimatedBytesUsed()
TermsIterator
getTermsWithPostings()
EXPENSIVE OPERATION due to sorting the terms, only call once.boolean
isEmpty()
-
-
-
Method Detail
-
estimatedBytesUsed
public long estimatedBytesUsed()
-
isEmpty
public boolean isEmpty()
-
getTermsWithPostings
public TermsIterator getTermsWithPostings()
EXPENSIVE OPERATION due to sorting the terms, only call once.
-
add
public long add(org.apache.lucene.util.BytesRef term, int segmentRowId)
-
-