public static CompressionCodecName fromParquet(CompressionCodec codec) { for (CompressionCodecName codecName : CompressionCodecName.values()) { if (codec.equals(codecName.parquetCompressionCodec)) { return codecName; } } throw new IllegalArgumentException("Unknown compression codec " + codec); }
builder.append(present_codec); if (present_codec) builder.append(codec.getValue());
case 4: // CODEC if (field.type == TType.I32) { this.codec = CompressionCodec.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
case 4: // CODEC if (field.type == TType.I32) { this.codec = CompressionCodec.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type);
oprot.writeI32(this.codec.getValue()); oprot.writeFieldEnd();
if (!(this_present_codec && that_present_codec)) return false; if (!this.codec.equals(that.codec)) return false;
oprot.writeI32(this.codec.getValue()); oprot.writeFieldEnd();
if (!(this_present_codec && that_present_codec)) return false; if (!this.codec.equals(that.codec)) return false;
builder.append(present_codec); if (present_codec) builder.append(codec.getValue());