本文整理了Java中org.apache.hadoop.hive.metastore.api.Partition.setLastAccessTimeIsSet()
方法的一些代码示例,展示了Partition.setLastAccessTimeIsSet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Partition.setLastAccessTimeIsSet()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Partition
类名称:Partition
方法名:setLastAccessTimeIsSet
暂无
代码示例来源:origin: apache/hive
public void setLastAccessTime(int lastAccessTime) {
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
}
代码示例来源:origin: apache/hive
@Override
public void clear() {
this.values = null;
this.dbName = null;
this.tableName = null;
setCreateTimeIsSet(false);
this.createTime = 0;
setLastAccessTimeIsSet(false);
this.lastAccessTime = 0;
this.sd = null;
this.parameters = null;
this.privileges = null;
this.catName = null;
this.writeId = -1L;
setIsStatsCompliantIsSet(false);
this.isStatsCompliant = false;
this.colStats = null;
}
代码示例来源:origin: apache/hive
public Partition(
List<String> values,
String dbName,
String tableName,
int createTime,
int lastAccessTime,
StorageDescriptor sd,
Map<String,String> parameters)
{
this();
this.values = values;
this.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(dbName);
this.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(tableName);
this.createTime = createTime;
setCreateTimeIsSet(true);
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
this.sd = sd;
this.parameters = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(parameters);
}
代码示例来源:origin: apache/hive
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.lastAccessTime = iprot.readI32();
struct.setLastAccessTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: apache/hive
Partition toHivePartition() throws HCatException {
Partition hivePtn = new Partition();
hivePtn.setDbName(dbName);
hivePtn.setTableName(tableName);
hivePtn.setValues(values);
hivePtn.setParameters(parameters);
if (sd.getLocation() == null) {
LOG.warn("Partition location is not set! Attempting to construct default partition location.");
try {
String partName = Warehouse.makePartName(HCatSchemaUtils.getFieldSchemas(hcatTable.getPartCols()), values);
sd.setLocation(new Path(hcatTable.getSd().getLocation(), partName).toString());
}
catch(MetaException exception) {
throw new HCatException("Could not construct default partition-path for "
+ hcatTable.getDbName() + "." + hcatTable.getTableName() + "[" + values + "]");
}
}
hivePtn.setSd(sd);
hivePtn.setCreateTime((int) (System.currentTimeMillis() / 1000));
hivePtn.setLastAccessTimeIsSet(false);
return hivePtn;
}
代码示例来源:origin: apache/hive
struct.setLastAccessTimeIsSet(true);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
public void setLastAccessTime(int lastAccessTime) {
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
}
代码示例来源:origin: org.spark-project.hive/hive-metastore
public void setLastAccessTime(int lastAccessTime) {
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
public void setLastAccessTime(int lastAccessTime) {
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
@Override
public void clear() {
this.values = null;
this.dbName = null;
this.tableName = null;
setCreateTimeIsSet(false);
this.createTime = 0;
setLastAccessTimeIsSet(false);
this.lastAccessTime = 0;
this.sd = null;
this.parameters = null;
this.privileges = null;
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
@Override
public void clear() {
this.values = null;
this.dbName = null;
this.tableName = null;
setCreateTimeIsSet(false);
this.createTime = 0;
setLastAccessTimeIsSet(false);
this.lastAccessTime = 0;
this.sd = null;
this.parameters = null;
this.privileges = null;
}
代码示例来源:origin: org.spark-project.hive/hive-metastore
@Override
public void clear() {
this.values = null;
this.dbName = null;
this.tableName = null;
setCreateTimeIsSet(false);
this.createTime = 0;
setLastAccessTimeIsSet(false);
this.lastAccessTime = 0;
this.sd = null;
this.parameters = null;
this.privileges = null;
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
public Partition(
List<String> values,
String dbName,
String tableName,
int createTime,
int lastAccessTime,
StorageDescriptor sd,
Map<String,String> parameters)
{
this();
this.values = values;
this.dbName = dbName;
this.tableName = tableName;
this.createTime = createTime;
setCreateTimeIsSet(true);
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
this.sd = sd;
this.parameters = parameters;
}
代码示例来源:origin: org.spark-project.hive/hive-metastore
public Partition(
List<String> values,
String dbName,
String tableName,
int createTime,
int lastAccessTime,
StorageDescriptor sd,
Map<String,String> parameters)
{
this();
this.values = values;
this.dbName = dbName;
this.tableName = tableName;
this.createTime = createTime;
setCreateTimeIsSet(true);
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
this.sd = sd;
this.parameters = parameters;
}
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
public Partition(
List<String> values,
String dbName,
String tableName,
int createTime,
int lastAccessTime,
StorageDescriptor sd,
Map<String,String> parameters)
{
this();
this.values = values;
this.dbName = dbName;
this.tableName = tableName;
this.createTime = createTime;
setCreateTimeIsSet(true);
this.lastAccessTime = lastAccessTime;
setLastAccessTimeIsSet(true);
this.sd = sd;
this.parameters = parameters;
}
代码示例来源:origin: org.spark-project.hive/hive-metastore
struct.setLastAccessTimeIsSet(true);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
struct.setLastAccessTimeIsSet(true);
代码示例来源:origin: org.spark-project.hive.hcatalog/hive-webhcat-java-client
Partition toHivePartition() throws HCatException {
Partition hivePtn = new Partition();
hivePtn.setDbName(dbName);
hivePtn.setTableName(tableName);
hivePtn.setValues(values);
hivePtn.setParameters(parameters);
if (sd.getLocation() == null) {
LOG.warn("Partition location is not set! Attempting to construct default partition location.");
try {
String partName = Warehouse.makePartName(HCatSchemaUtils.getFieldSchemas(hcatTable.getPartCols()), values);
sd.setLocation(new Path(hcatTable.getSd().getLocation(), partName).toString());
}
catch(MetaException exception) {
throw new HCatException("Could not construct default partition-path for "
+ hcatTable.getDbName() + "." + hcatTable.getTableName() + "[" + values + "]");
}
}
hivePtn.setSd(sd);
hivePtn.setCreateTime((int) (System.currentTimeMillis() / 1000));
hivePtn.setLastAccessTimeIsSet(false);
return hivePtn;
}
代码示例来源:origin: org.apache.hive.hcatalog/hive-webhcat-java-client
Partition toHivePartition() throws HCatException {
Partition hivePtn = new Partition();
hivePtn.setDbName(dbName);
hivePtn.setTableName(tableName);
hivePtn.setValues(values);
hivePtn.setParameters(parameters);
if (sd.getLocation() == null) {
LOG.warn("Partition location is not set! Attempting to construct default partition location.");
try {
String partName = Warehouse.makePartName(HCatSchemaUtils.getFieldSchemas(hcatTable.getPartCols()), values);
sd.setLocation(new Path(hcatTable.getSd().getLocation(), partName).toString());
}
catch(MetaException exception) {
throw new HCatException("Could not construct default partition-path for "
+ hcatTable.getDbName() + "." + hcatTable.getTableName() + "[" + values + "]");
}
}
hivePtn.setSd(sd);
hivePtn.setCreateTime((int) (System.currentTimeMillis() / 1000));
hivePtn.setLastAccessTimeIsSet(false);
return hivePtn;
}
代码示例来源:origin: com.github.hyukjinkwon.hcatalog/hive-webhcat-java-client
Partition toHivePartition() throws HCatException {
Partition hivePtn = new Partition();
hivePtn.setDbName(dbName);
hivePtn.setTableName(tableName);
hivePtn.setValues(values);
hivePtn.setParameters(parameters);
if (sd.getLocation() == null) {
LOG.warn("Partition location is not set! Attempting to construct default partition location.");
try {
String partName = Warehouse.makePartName(HCatSchemaUtils.getFieldSchemas(hcatTable.getPartCols()), values);
sd.setLocation(new Path(hcatTable.getSd().getLocation(), partName).toString());
}
catch(MetaException exception) {
throw new HCatException("Could not construct default partition-path for "
+ hcatTable.getDbName() + "." + hcatTable.getTableName() + "[" + values + "]");
}
}
hivePtn.setSd(sd);
hivePtn.setCreateTime((int) (System.currentTimeMillis() / 1000));
hivePtn.setLastAccessTimeIsSet(false);
return hivePtn;
}
内容来源于网络,如有侵权,请联系作者删除!