public PFunction(PName tenantId, String functionName, List<FunctionArgument> args, String returnType, String className, String jarPath, long timeStamp, boolean temporary, boolean replace) { this.tenantId = tenantId; this.functionName = PNameFactory.newName(functionName); if (args == null){ this.args = new ArrayList<FunctionArgument>(); } else { this.args = args; } this.className = PNameFactory.newName(className); this.jarPath = jarPath == null ? null : PNameFactory.newName(jarPath); this.returnType = PNameFactory.newName(returnType); this.functionKey = new PTableKey(this.tenantId, this.functionName.getString()); this.timeStamp = timeStamp; int estimatedSize = SizedUtil.OBJECT_SIZE * 2 + 23 * SizedUtil.POINTER_SIZE + 4 * SizedUtil.INT_SIZE + 2 * SizedUtil.LONG_SIZE + 2 * SizedUtil.INT_OBJECT_SIZE + PNameFactory.getEstimatedSize(tenantId) + PNameFactory.getEstimatedSize(this.functionName) + PNameFactory.getEstimatedSize(this.className) + (jarPath==null?0:PNameFactory.getEstimatedSize(this.jarPath)); this.temporary = temporary; this.replace = replace; }
public PSchema(String schemaName, long timeStamp) { this.schemaName = PNameFactory.newName(SchemaUtil.normalizeIdentifier(schemaName)); this.schemaKey = new PTableKey(null, this.schemaName.getString()); this.timeStamp = timeStamp; this.estimatedSize = SizedUtil.INT_SIZE + SizedUtil.LONG_SIZE + PNameFactory.getEstimatedSize(this.schemaName); }
int estimatedSize = SizedUtil.OBJECT_SIZE * 2 + 23 * SizedUtil.POINTER_SIZE + 4 * SizedUtil.INT_SIZE + 2 * SizedUtil.LONG_SIZE + 2 * SizedUtil.INT_OBJECT_SIZE + PNameFactory.getEstimatedSize(this.tenantId) + PNameFactory.getEstimatedSize(this.schemaName) + PNameFactory.getEstimatedSize(this.tableName) + PNameFactory.getEstimatedSize(this.pkName) + PNameFactory.getEstimatedSize(this.parentTableName) + PNameFactory.getEstimatedSize(this.defaultFamilyName); int numPKColumns = 0; List<PColumn> pkColumns; estimatedSize += PNameFactory.getEstimatedSize(this.parentName); for (PName physicalName : this.physicalNames) { estimatedSize += physicalName.getEstimatedSize();
public PFunction(PName tenantId, String functionName, List<FunctionArgument> args, String returnType, String className, String jarPath, long timeStamp, boolean temporary, boolean replace) { this.tenantId = tenantId; this.functionName = PNameFactory.newName(functionName); if (args == null){ this.args = new ArrayList<FunctionArgument>(); } else { this.args = args; } this.className = PNameFactory.newName(className); this.jarPath = jarPath == null ? null : PNameFactory.newName(jarPath); this.returnType = PNameFactory.newName(returnType); this.functionKey = new PTableKey(this.tenantId, this.functionName.getString()); this.timeStamp = timeStamp; int estimatedSize = SizedUtil.OBJECT_SIZE * 2 + 23 * SizedUtil.POINTER_SIZE + 4 * SizedUtil.INT_SIZE + 2 * SizedUtil.LONG_SIZE + 2 * SizedUtil.INT_OBJECT_SIZE + PNameFactory.getEstimatedSize(tenantId) + PNameFactory.getEstimatedSize(this.functionName) + PNameFactory.getEstimatedSize(this.className) + (jarPath==null?0:PNameFactory.getEstimatedSize(this.jarPath)); this.temporary = temporary; this.replace = replace; }
public PFunction(PName tenantId, String functionName, List<FunctionArgument> args, String returnType, String className, String jarPath, long timeStamp, boolean temporary, boolean replace) { this.tenantId = tenantId; this.functionName = PNameFactory.newName(functionName); if (args == null){ this.args = new ArrayList<FunctionArgument>(); } else { this.args = args; } this.className = PNameFactory.newName(className); this.jarPath = jarPath == null ? null : PNameFactory.newName(jarPath); this.returnType = PNameFactory.newName(returnType); this.functionKey = new PTableKey(this.tenantId, this.functionName.getString()); this.timeStamp = timeStamp; int estimatedSize = SizedUtil.OBJECT_SIZE * 2 + 23 * SizedUtil.POINTER_SIZE + 4 * SizedUtil.INT_SIZE + 2 * SizedUtil.LONG_SIZE + 2 * SizedUtil.INT_OBJECT_SIZE + PNameFactory.getEstimatedSize(tenantId) + PNameFactory.getEstimatedSize(this.functionName) + PNameFactory.getEstimatedSize(this.className) + (jarPath==null?0:PNameFactory.getEstimatedSize(this.jarPath)); this.temporary = temporary; this.replace = replace; }
public PSchema(String schemaName, long timeStamp) { this.schemaName = PNameFactory.newName(SchemaUtil.normalizeIdentifier(schemaName)); this.schemaKey = new PTableKey(null, this.schemaName.getString()); this.timeStamp = timeStamp; this.estimatedSize = SizedUtil.INT_SIZE + SizedUtil.LONG_SIZE + PNameFactory.getEstimatedSize(this.schemaName); }
public PSchema(String schemaName, long timeStamp) { this.schemaName = PNameFactory.newName(SchemaUtil.normalizeIdentifier(schemaName)); this.schemaKey = new PTableKey(null, this.schemaName.getString()); this.timeStamp = timeStamp; this.estimatedSize = SizedUtil.INT_SIZE + SizedUtil.LONG_SIZE + PNameFactory.getEstimatedSize(this.schemaName); }
Preconditions.checkArgument(tenantId==null || tenantId.getBytes().length > 0); // tenantId should be null or not empty int estimatedSize = SizedUtil.OBJECT_SIZE * 2 + 23 * SizedUtil.POINTER_SIZE + 4 * SizedUtil.INT_SIZE + 2 * SizedUtil.LONG_SIZE + 2 * SizedUtil.INT_OBJECT_SIZE + PNameFactory.getEstimatedSize(tenantId) + PNameFactory.getEstimatedSize(schemaName) + PNameFactory.getEstimatedSize(tableName) + PNameFactory.getEstimatedSize(pkName) + PNameFactory.getEstimatedSize(parentTableName) + PNameFactory.getEstimatedSize(defaultFamilyName); this.tenantId = tenantId; this.schemaName = schemaName; this.parentName = parentTableName == null ? null : PNameFactory.newName(SchemaUtil.getTableName( parentSchemaName!=null ? parentSchemaName.getString() : null, parentTableName.getString())); estimatedSize += PNameFactory.getEstimatedSize(this.parentName);
int estimatedSize = SizedUtil.OBJECT_SIZE * 2 + 23 * SizedUtil.POINTER_SIZE + 4 * SizedUtil.INT_SIZE + 2 * SizedUtil.LONG_SIZE + 2 * SizedUtil.INT_OBJECT_SIZE + PNameFactory.getEstimatedSize(this.tenantId) + PNameFactory.getEstimatedSize(this.schemaName) + PNameFactory.getEstimatedSize(this.tableName) + PNameFactory.getEstimatedSize(this.pkName) + PNameFactory.getEstimatedSize(this.parentTableName) + PNameFactory.getEstimatedSize(this.defaultFamilyName); int numPKColumns = 0; List<PColumn> pkColumns; estimatedSize += PNameFactory.getEstimatedSize(this.parentName); for (PName physicalName : this.physicalNames) { estimatedSize += physicalName.getEstimatedSize();