Package org.apache.druid.segment.data
Interface DictionaryWriter<T>
-
- All Superinterfaces:
Serializer
- All Known Implementing Classes:
EncodedStringDictionaryWriter
,FixedIndexedWriter
,FrontCodedIndexedWriter
,FrontCodedIntArrayIndexedWriter
,GenericIndexedWriter
public interface DictionaryWriter<T> extends Serializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get(int dictId)
int
getCardinality()
boolean
isSorted()
void
open()
void
write(T objectToWrite)
-
Methods inherited from interface org.apache.druid.segment.serde.Serializer
getSerializedSize, writeTo
-
-
-
-
Method Detail
-
isSorted
boolean isSorted()
-
open
void open() throws IOException
- Throws:
IOException
-
write
void write(@Nullable T objectToWrite) throws IOException
- Throws:
IOException
-
get
@Nullable T get(int dictId) throws IOException
- Throws:
IOException
-
getCardinality
int getCardinality()
-
-