Class NullValueVectorCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.nullvalue.NullValueVectorCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexCreator
public class NullValueVectorCreator extends Object implements IndexCreator
Used to persist the null bitmap on disk. This is used by SegmentCreator while indexing rows. Although this class implementsIndexCreator, it is not intended to be used as a normal IndexCreator. Specifically, neitheradd(Object, int)oradd(Object[], int[])should be called on this object. In order to make sure these methods are not being called, they throw exceptions in this class. This requirement is a corollary from the fact that theIndexCreatorcontract assumes the value will never be null, which is true for all index creators types unless this one.
-
-
Constructor Summary
Constructors Constructor Description NullValueVectorCreator(File indexDir, String columnName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object[] values, int[] dictIds)voidadd(Object value, int dictId)voidclose()voidseal()voidsetNull(int docId)
-
-
-
Method Detail
-
add
public void add(@Nonnull Object value, int dictId) throws IOException- Specified by:
addin interfaceIndexCreator- Throws:
IOException
-
add
public void add(@Nonnull Object[] values, @Nullable int[] dictIds) throws IOException- Specified by:
addin interfaceIndexCreator- Throws:
IOException
-
setNull
public void setNull(int docId)
-
seal
public void seal() throws IOException- Specified by:
sealin interfaceIndexCreator- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-