@Test public void returnHiveProtoParquetWriterWithOffset() { CloseableWriter parquetWriter = new HiveProtoParquetWriterWithOffset<>(protoParquetWriterWithOffset, hiveClient).withHiveSupport(true); assertTrue(parquetWriter instanceof HiveProtoParquetWriterWithOffset); }
public CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport) { if (isHiveSuppport) { return this; } else { return protoParquetWriterWithOffset; } }
HiveProtoParquetWriterWithOffset implements CloseableWriter<MESSAGE_KIND> { public CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport) { if (isHiveSuppport) { return this; } else { return protoParquetWriterWithOffset; } } }
HiveProtoParquetWriterWithOffset implements CloseableWriter<MESSAGE_KIND> { public CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport) { if (isHiveSuppport) { return this; } else { return protoParquetWriterWithOffset; } } HiveProtoParquetWriterWithOffset(ProtoParquetWriterWithOffset<MESSAGE_KIND> protoParquetWriterWithOffset, HiveClient hiveClient); }
HiveProtoParquetWriterWithOffset implements CloseableWriter<MESSAGE_KIND> { public CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport) { if (isHiveSuppport) { return this; } else { return protoParquetWriterWithOffset; } } HiveProtoParquetWriterWithOffset(ProtoParquetWriterWithOffset<MESSAGE_KIND> protoParquetWriterWithOffset, HiveClient hiveClient); @Override void write(long timestamp, MESSAGE_KIND msg, Offset offset); @Override Path close(); CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport); }
HiveProtoParquetWriterWithOffset implements CloseableWriter<MESSAGE_KIND> { public CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport) { if (isHiveSuppport) { return this; } else { return protoParquetWriterWithOffset; } } HiveProtoParquetWriterWithOffset(ProtoParquetWriterWithOffset<MESSAGE_KIND> protoParquetWriterWithOffset, HiveClient hiveClient); @Override void write(long timestamp, MESSAGE_KIND msg, Offset offset); @Override Path close(); CloseableWriter<MESSAGE_KIND> withHiveSupport(boolean isHiveSuppport);  }