@Override public PName getParentName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentName : getPhysicalName(); }
@Override public List<PName> getPhysicalNames() { return !physicalNames.isEmpty() ? physicalNames : Lists.newArrayList(getPhysicalName()); }
@Override public PName getParentTableName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentTableName : PNameFactory.newName(SchemaUtil.getTableNameFromFullName(getPhysicalName().getBytes())); }
@Override public PName getParentSchemaName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentSchemaName : PNameFactory.newName(SchemaUtil.getSchemaNameFromFullName(getPhysicalName().getBytes())); }
@Override public PName getParentName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentName : getPhysicalName(); }
@Override public PName getParentName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentName : getPhysicalName(); }
@Override public List<PName> getPhysicalNames() { return !physicalNames.isEmpty() ? physicalNames : Lists.newArrayList(getPhysicalName()); }
@Override public PName getParentSchemaName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentSchemaName : PNameFactory.newName(SchemaUtil.getSchemaNameFromFullName(getPhysicalName().getBytes())); }
@Override public PName getParentTableName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentTableName : PNameFactory.newName(SchemaUtil.getTableNameFromFullName(getPhysicalName().getBytes())); }
@Override public PName getParentTableName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentTableName : PNameFactory.newName(SchemaUtil.getTableNameFromFullName(getPhysicalName().getBytes())); }
@Override public PName getParentSchemaName() { // a view on a table will not have a parent name but will have a physical table name (which is the parent) return (type!=PTableType.VIEW || parentName!=null) ? parentSchemaName : PNameFactory.newName(SchemaUtil.getSchemaNameFromFullName(getPhysicalName().getBytes())); }