@Test public void testGetMaxId() throws IOException { AppendTrieDictionaryBuilder builder = createBuilder(); builder.addValue("a"); builder.addValue("b"); builder.addValue("c"); builder.addValue("d"); builder.addValue("e"); builder.addValue("f"); AppendTrieDictionary dict = builder.build(0); assertEquals(6, dict.getMaxId()); }
@Override public int getMaxId() { return metadata.maxId; }
AppendTrieDictionary extends CacheDictionary<T> { @Override public int getMaxId() { return metadata.maxId; } }
AppendTrieDictionary extends CacheDictionary<T> { @Override public int getMaxId() { return metadata.maxId; }  }
AppendTrieDictionary extends CacheDictionary<T> { @Override public int getMaxId() { return metadata.maxId; }  void init(String baseDir); @Override int getIdFromValueBytesWithoutCache(byte[] value, int offset, int len, int roundingFlag); CacheStats getCacheStats(); GlobalDictMetadata getDictMetadata(); @Override int getMinId(); @Override int getMaxId(); @Override int getSizeOfId(); @Override int getSizeOfValue(); @Override AppendTrieDictionary copyToAnotherMeta(KylinConfig srcConfig, KylinConfig dstConfig); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override void dump(PrintStream out); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override boolean contains(Dictionary other); }
AppendTrieDictionary extends CacheDictionary<T> { @Override public int getMaxId() { return metadata.maxId; }  void init(String baseDir); @Override int getIdFromValueBytesWithoutCache(byte[] value, int offset, int len, int roundingFlag); CacheStats getCacheStats(); GlobalDictMetadata getDictMetadata(); @Override int getMinId(); @Override int getMaxId(); @Override int getSizeOfId(); @Override int getSizeOfValue(); @Override AppendTrieDictionary copyToAnotherMeta(KylinConfig srcConfig, KylinConfig dstConfig); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override void dump(PrintStream out); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override boolean contains(Dictionary other); static final byte[] HEAD_MAGIC; static final int HEAD_SIZE_I; }