Interface TokenTreeBuilder
-
- All Superinterfaces:
java.lang.Iterable<Pair<java.lang.Long,com.carrotsearch.hppc.LongSet>>
- All Known Implementing Classes:
AbstractTokenTreeBuilder,DynamicTokenTreeBuilder,StaticTokenTreeBuilder
public interface TokenTreeBuilder extends java.lang.Iterable<Pair<java.lang.Long,com.carrotsearch.hppc.LongSet>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTokenTreeBuilder.EntryType
-
Field Summary
Fields Modifier and Type Field Description static shortAB_MAGICstatic intBLOCK_BYTESstatic intBLOCK_ENTRY_BYTESstatic intBLOCK_HEADER_BYTESstatic byteENTRY_TYPE_MASKstatic byteLAST_LEAF_SHIFTstatic longMAX_OFFSETstatic intOVERFLOW_ENTRY_BYTESstatic intOVERFLOW_TRAILER_BYTESstatic intOVERFLOW_TRAILER_CAPACITYstatic byteSHARED_HEADER_BYTESstatic intTOKENS_PER_BLOCK
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(java.lang.Long token, long keyPosition)voidadd(java.util.Iterator<Pair<java.lang.Long,com.carrotsearch.hppc.LongSet>> data)voidadd(java.util.SortedMap<java.lang.Long,com.carrotsearch.hppc.LongSet> data)voidadd(TokenTreeBuilder ttb)TokenTreeBuilderfinish()longgetTokenCount()booleanisEmpty()intserializedSize()voidwrite(DataOutputPlus out)
-
-
-
Field Detail
-
BLOCK_BYTES
static final int BLOCK_BYTES
- See Also:
- Constant Field Values
-
BLOCK_HEADER_BYTES
static final int BLOCK_HEADER_BYTES
- See Also:
- Constant Field Values
-
BLOCK_ENTRY_BYTES
static final int BLOCK_ENTRY_BYTES
- See Also:
- Constant Field Values
-
OVERFLOW_TRAILER_BYTES
static final int OVERFLOW_TRAILER_BYTES
- See Also:
- Constant Field Values
-
OVERFLOW_ENTRY_BYTES
static final int OVERFLOW_ENTRY_BYTES
- See Also:
- Constant Field Values
-
OVERFLOW_TRAILER_CAPACITY
static final int OVERFLOW_TRAILER_CAPACITY
- See Also:
- Constant Field Values
-
TOKENS_PER_BLOCK
static final int TOKENS_PER_BLOCK
- See Also:
- Constant Field Values
-
MAX_OFFSET
static final long MAX_OFFSET
- See Also:
- Constant Field Values
-
LAST_LEAF_SHIFT
static final byte LAST_LEAF_SHIFT
- See Also:
- Constant Field Values
-
SHARED_HEADER_BYTES
static final byte SHARED_HEADER_BYTES
- See Also:
- Constant Field Values
-
ENTRY_TYPE_MASK
static final byte ENTRY_TYPE_MASK
- See Also:
- Constant Field Values
-
AB_MAGIC
static final short AB_MAGIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
void add(java.lang.Long token, long keyPosition)
-
add
void add(java.util.SortedMap<java.lang.Long,com.carrotsearch.hppc.LongSet> data)
-
add
void add(java.util.Iterator<Pair<java.lang.Long,com.carrotsearch.hppc.LongSet>> data)
-
add
void add(TokenTreeBuilder ttb)
-
isEmpty
boolean isEmpty()
-
getTokenCount
long getTokenCount()
-
finish
TokenTreeBuilder finish()
-
serializedSize
int serializedSize()
-
write
void write(DataOutputPlus out) throws java.io.IOException
- Throws:
java.io.IOException
-
-