org.apache.hadoop.hive.metastore.api.Table.write()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.apache.hadoop.hive.metastore.api.Table.write()方法的一些代码示例,展示了Table.write()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.write()方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Table
类名称:Table
方法名:write

Table.write介绍

暂无

代码示例

代码示例来源:origin: apache/hive

  1. private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
  2. try {
  3. write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
  4. } catch (org.apache.thrift.TException te) {
  5. throw new java.io.IOException(te);
  6. }
  7. }

代码示例来源:origin: apache/hive

  1. @Override
  2. public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException {
  3. TTupleProtocol oprot = (TTupleProtocol) prot;
  4. {
  5. oprot.writeI32(struct.tables.size());
  6. for (Table _iter900 : struct.tables)
  7. {
  8. _iter900.write(oprot);
  9. }
  10. }
  11. }

代码示例来源:origin: apache/hive

  1. public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableResult struct) throws org.apache.thrift.TException {
  2. struct.validate();
  3. oprot.writeStructBegin(STRUCT_DESC);
  4. if (struct.table != null) {
  5. oprot.writeFieldBegin(TABLE_FIELD_DESC);
  6. struct.table.write(oprot);
  7. oprot.writeFieldEnd();
  8. }
  9. if (struct.isSetIsStatsCompliant()) {
  10. oprot.writeFieldBegin(IS_STATS_COMPLIANT_FIELD_DESC);
  11. oprot.writeBool(struct.isStatsCompliant);
  12. oprot.writeFieldEnd();
  13. }
  14. oprot.writeFieldStop();
  15. oprot.writeStructEnd();
  16. }

代码示例来源:origin: apache/hive

  1. public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult struct) throws org.apache.thrift.TException {
  2. struct.validate();
  3. oprot.writeStructBegin(STRUCT_DESC);
  4. if (struct.tables != null) {
  5. oprot.writeFieldBegin(TABLES_FIELD_DESC);
  6. {
  7. oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size()));
  8. for (Table _iter899 : struct.tables)
  9. {
  10. _iter899.write(oprot);
  11. }
  12. oprot.writeListEnd();
  13. }
  14. oprot.writeFieldEnd();
  15. }
  16. oprot.writeFieldStop();
  17. oprot.writeStructEnd();
  18. }

代码示例来源:origin: apache/hive

  1. @Override
  2. public void write(org.apache.thrift.protocol.TProtocol prot, GetTableResult struct) throws org.apache.thrift.TException {
  3. TTupleProtocol oprot = (TTupleProtocol) prot;
  4. struct.table.write(oprot);
  5. BitSet optionals = new BitSet();
  6. if (struct.isSetIsStatsCompliant()) {
  7. optionals.set(0);
  8. }
  9. oprot.writeBitSet(optionals, 1);
  10. if (struct.isSetIsStatsCompliant()) {
  11. oprot.writeBool(struct.isStatsCompliant);
  12. }
  13. }

代码示例来源:origin: apache/hive

  1. struct.table.write(oprot);
  2. oprot.writeFieldEnd();

代码示例来源:origin: apache/hive

  1. oprot.writeString(struct.dbName);
  2. oprot.writeString(struct.tableName);
  3. struct.table.write(oprot);
  4. BitSet optionals = new BitSet();
  5. if (struct.isSetCatName()) {

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

  1. @Override
  2. public void write(org.apache.thrift.protocol.TProtocol prot, GetTableResult struct) throws org.apache.thrift.TException {
  3. TTupleProtocol oprot = (TTupleProtocol) prot;
  4. struct.table.write(oprot);
  5. }

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

  1. private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
  2. try {
  3. write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
  4. } catch (org.apache.thrift.TException te) {
  5. throw new java.io.IOException(te);
  6. }
  7. }

代码示例来源:origin: org.spark-project.hive/hive-metastore

  1. private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
  2. try {
  3. write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
  4. } catch (org.apache.thrift.TException te) {
  5. throw new java.io.IOException(te);
  6. }
  7. }

代码示例来源:origin: com.facebook.presto.hive/hive-apache

  1. private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
  2. try {
  3. write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
  4. } catch (org.apache.thrift.TException te) {
  5. throw new java.io.IOException(te);
  6. }
  7. }

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

  1. @Override
  2. public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException {
  3. TTupleProtocol oprot = (TTupleProtocol) prot;
  4. {
  5. oprot.writeI32(struct.tables.size());
  6. for (Table _iter836 : struct.tables)
  7. {
  8. _iter836.write(oprot);
  9. }
  10. }
  11. }

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

  1. public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableResult struct) throws org.apache.thrift.TException {
  2. struct.validate();
  3. oprot.writeStructBegin(STRUCT_DESC);
  4. if (struct.table != null) {
  5. oprot.writeFieldBegin(TABLE_FIELD_DESC);
  6. struct.table.write(oprot);
  7. oprot.writeFieldEnd();
  8. }
  9. oprot.writeFieldStop();
  10. oprot.writeStructEnd();
  11. }

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

  1. public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult struct) throws org.apache.thrift.TException {
  2. struct.validate();
  3. oprot.writeStructBegin(STRUCT_DESC);
  4. if (struct.tables != null) {
  5. oprot.writeFieldBegin(TABLES_FIELD_DESC);
  6. {
  7. oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size()));
  8. for (Table _iter835 : struct.tables)
  9. {
  10. _iter835.write(oprot);
  11. }
  12. oprot.writeListEnd();
  13. }
  14. oprot.writeFieldEnd();
  15. }
  16. oprot.writeFieldStop();
  17. oprot.writeStructEnd();
  18. }

相关文章

Table类方法