Class LongFrameMaker
- java.lang.Object
-
- org.apache.druid.frame.write.columnar.LongFrameMaker
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class LongFrameMaker extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static longDATA_OFFSET
-
Constructor Summary
Constructors Constructor Description LongFrameMaker(MemoryAllocator allocator, boolean hasNulls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(long value)booleanaddNull()voidclose()longsize()voidundo()static intvalueSize(boolean hasNulls)longwriteTo(org.apache.datasketches.memory.WritableMemory memory, long startPosition)
-
-
-
Field Detail
-
DATA_OFFSET
public static final long DATA_OFFSET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LongFrameMaker
public LongFrameMaker(MemoryAllocator allocator, boolean hasNulls)
-
-
Method Detail
-
valueSize
public static int valueSize(boolean hasNulls)
-
add
public boolean add(long value)
-
addNull
public boolean addNull()
-
undo
public void undo()
-
size
public long size()
-
writeTo
public long writeTo(org.apache.datasketches.memory.WritableMemory memory, long startPosition)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-