public XNativeTable withColumns(XColumns value) { setColumns(value); return this; }
public XNativeTable withCreatetime(int value) { setCreatetime(value); return this; }
public XNativeTable withDbname(String value) { setDbname(value); return this; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theColumns = this.getColumns(); strategy.appendField(locator, this, "columns", buffer, theColumns); theStorageDescriptor = this.getStorageDescriptor(); strategy.appendField(locator, this, "storageDescriptor", buffer, theStorageDescriptor); theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); theDbname = this.getDbname(); strategy.appendField(locator, this, "dbname", buffer, theDbname); theOwner = this.getOwner(); strategy.appendField(locator, this, "owner", buffer, theOwner); theTableType = this.getTableType(); strategy.appendField(locator, this, "tableType", buffer, theTableType); theCreatetime = this.getCreatetime(); strategy.appendField(locator, this, "createtime", buffer, theCreatetime); theLastAccessTime = this.getLastAccessTime(); strategy.appendField(locator, this, "lastAccessTime", buffer, theLastAccessTime);
public static XNativeTable nativeTableFromMetaTable(Table table) { XNativeTable xtable = XCF.createXNativeTable(); xtable.setColumns(new XColumns()); xtable.setName(table.getTableName()); xtable.setDbname(table.getDbName()); xtable.setOwner(table.getOwner()); xtable.setCreatetime(table.getTTable().getCreateTime()); xtable.setLastAccessTime(table.getTTable().getLastAccessTime()); xtable.getColumns().getColumn().addAll(columnsFromFieldSchemaList(table.getCols())); xtable.setStorageDescriptor(getStorageTableDescFromHiveTable(table)); xtable.setTableType(table.getTableType().name()); return xtable; }
assertNotNull(actual); assertTrue(tableName.equalsIgnoreCase(actual.getName())); assertEquals(actual.getColumns().getColumn().size(), 1); assertEquals(actual.getColumns().getColumn().get(0).getName(), "col1"); assertEquals(actual.getStorageDescriptor().getPartCols().getColumn().size(), 1); assertEquals(actual.getStorageDescriptor().getPartCols().getColumn().get(0).getName(), "pcol1"); assertEquals(actual.getTableType(), TableType.MANAGED_TABLE.name()); assertFalse(actual.getStorageDescriptor().isExternal()); boolean foundProp = false; for (XProperty prop : actual.getStorageDescriptor().getTableParameters().getProperty()) { if (prop.getName().equals("test.hive.table.prop")) { assertTrue(prop.getValue().equals("tvalue"));
public XNativeTable withLastAccessTime(int value) { setLastAccessTime(value); return this; }
public XNativeTable withOwner(String value) { setOwner(value); return this; }
public XNativeTable withName(String value) { setName(value); return this; }
assertEquals(alteredNativeTable.getStorageDescriptor().getFieldDelimiter(), "#");
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { theColumns = this.getColumns(); strategy.appendField(locator, this, "columns", buffer, theColumns); theStorageDescriptor = this.getStorageDescriptor(); strategy.appendField(locator, this, "storageDescriptor", buffer, theStorageDescriptor); theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); theDbname = this.getDbname(); strategy.appendField(locator, this, "dbname", buffer, theDbname); theOwner = this.getOwner(); strategy.appendField(locator, this, "owner", buffer, theOwner); theTableType = this.getTableType(); strategy.appendField(locator, this, "tableType", buffer, theTableType); theCreatetime = this.getCreatetime(); strategy.appendField(locator, this, "createtime", buffer, theCreatetime); theLastAccessTime = this.getLastAccessTime(); strategy.appendField(locator, this, "lastAccessTime", buffer, theLastAccessTime);
public static XNativeTable nativeTableFromMetaTable(Table table) { XNativeTable xtable = XCF.createXNativeTable(); xtable.setColumns(new XColumns()); xtable.setName(table.getTableName()); xtable.setDbname(table.getDbName()); xtable.setOwner(table.getOwner()); xtable.setCreatetime(table.getTTable().getCreateTime()); xtable.setLastAccessTime(table.getTTable().getLastAccessTime()); xtable.getColumns().getColumn().addAll(columnsFromFieldSchemaList(table.getCols())); xtable.setStorageDescriptor(getStorageTableDescFromHiveTable(table)); xtable.setTableType(table.getTableType().name()); return xtable; }
public XNativeTable withLastAccessTime(int value) { setLastAccessTime(value); return this; }
public XNativeTable withOwner(String value) { setOwner(value); return this; }
public XNativeTable withName(String value) { setName(value); return this; }
.queryParam("sessionid", lensSessionId) .request(mediaType).get(new GenericType<JAXBElement<XNativeTable>>() {}).getValue(); assertEquals(newdNativeTable.getStorageDescriptor().getFieldDelimiter(), ":"); XNativeTable alteredNativeTable = nativeTarget.path("test_" + table).queryParam("sessionid", lensSessionId) .request(mediaType).get(XNativeTable.class); assertEquals(alteredNativeTable.getStorageDescriptor().getInputFormat(), SequenceFileInputFormat.class.getCanonicalName());
theColumns = this.getColumns(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "columns", theColumns), currentHashCode, theColumns); theStorageDescriptor = this.getStorageDescriptor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "storageDescriptor", theStorageDescriptor), currentHashCode, theStorageDescriptor); theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); theDbname = this.getDbname(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dbname", theDbname), currentHashCode, theDbname); theOwner = this.getOwner(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "owner", theOwner), currentHashCode, theOwner); theTableType = this.getTableType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tableType", theTableType), currentHashCode, theTableType); theCreatetime = this.getCreatetime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createtime", theCreatetime), currentHashCode, theCreatetime); theLastAccessTime = this.getLastAccessTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastAccessTime", theLastAccessTime), currentHashCode, theLastAccessTime);
public XNativeTable withDbname(String value) { setDbname(value); return this; }
public XNativeTable withColumns(XColumns value) { setColumns(value); return this; }
public XNativeTable withCreatetime(int value) { setCreatetime(value); return this; }