@Test public void testSerialize() throws IOException { AppendTrieDictionaryBuilder builder = createBuilder(); AppendTrieDictionary dict = builder.build(0); ByteArrayOutputStream bout = new ByteArrayOutputStream(); DataOutputStream dataout = new DataOutputStream(bout); dict.write(dataout); dataout.close(); ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray()); DataInputStream datain = new DataInputStream(bin); assertNull(new Path(datain.readUTF()).toUri().getScheme()); datain.close(); }
@Override public void write(DataOutput out) throws IOException { out.writeUTF(convertToRelativePath(baseDir)); }
AppendTrieDictionary extends CacheDictionary<T> { @Override public void write(DataOutput out) throws IOException { out.writeUTF(convertToRelativePath(baseDir)); } }
AppendTrieDictionary extends CacheDictionary<T> { @Override public void write(DataOutput out) throws IOException { out.writeUTF(convertToRelativePath(baseDir)); }  }
AppendTrieDictionary extends CacheDictionary<T> { @Override public void write(DataOutput out) throws IOException { out.writeUTF(convertToRelativePath(baseDir)); }  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 void write(DataOutput out) throws IOException { out.writeUTF(convertToRelativePath(baseDir)); }  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; }