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

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

本文整理了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

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

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 {
  oprot.writeI32(struct.tables.size());
  for (Table _iter900 : struct.tables)
  {
   _iter900.write(oprot);
  }
 }
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableResult struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.table != null) {
  oprot.writeFieldBegin(TABLE_FIELD_DESC);
  struct.table.write(oprot);
  oprot.writeFieldEnd();
 }
 if (struct.isSetIsStatsCompliant()) {
  oprot.writeFieldBegin(IS_STATS_COMPLIANT_FIELD_DESC);
  oprot.writeBool(struct.isStatsCompliant);
  oprot.writeFieldEnd();
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.tables != null) {
  oprot.writeFieldBegin(TABLES_FIELD_DESC);
  {
   oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size()));
   for (Table _iter899 : struct.tables)
   {
    _iter899.write(oprot);
   }
   oprot.writeListEnd();
  }
  oprot.writeFieldEnd();
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, GetTableResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 struct.table.write(oprot);
 BitSet optionals = new BitSet();
 if (struct.isSetIsStatsCompliant()) {
  optionals.set(0);
 }
 oprot.writeBitSet(optionals, 1);
 if (struct.isSetIsStatsCompliant()) {
  oprot.writeBool(struct.isStatsCompliant);
 }
}

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

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

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

oprot.writeString(struct.dbName);
oprot.writeString(struct.tableName);
struct.table.write(oprot);
BitSet optionals = new BitSet();
if (struct.isSetCatName()) {

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

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

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

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

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

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

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

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

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 {
  oprot.writeI32(struct.tables.size());
  for (Table _iter836 : struct.tables)
  {
   _iter836.write(oprot);
  }
 }
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableResult struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.table != null) {
  oprot.writeFieldBegin(TABLE_FIELD_DESC);
  struct.table.write(oprot);
  oprot.writeFieldEnd();
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.tables != null) {
  oprot.writeFieldBegin(TABLES_FIELD_DESC);
  {
   oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size()));
   for (Table _iter835 : struct.tables)
   {
    _iter835.write(oprot);
   }
   oprot.writeListEnd();
  }
  oprot.writeFieldEnd();
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

相关文章

Table类方法