@Ignore("Only occurred when value is very long (>8000 bytes)") @Test public void testSuperLongValue() throws IOException { AppendTrieDictionaryBuilder builder = createBuilder(); String value = "a"; for (int i = 0; i < 10000; i++) { value += "a"; try { builder.addValue(value); } catch (StackOverflowError e) { System.out.println("\nstack overflow " + i); throw e; } } AppendTrieDictionary dictionary = builder.build(0); dictionary.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; }