code
stringlengths
73
34.1k
label
stringclasses
1 value
private void respondWithDummy() { final FragmentResponseMessage response = new FragmentResponseMessage(m_fragmentMsg, m_initiator.getHSId()); response.m_sourceHSId = m_initiator.getHSId(); response.setRecovering(true); response.setStatus(FragmentResponseMessage.SUCCESS, n...
java
public FragmentResponseMessage processFragmentTask(SiteProcedureConnection siteConnection) { final FragmentResponseMessage currentFragResponse = new FragmentResponseMessage(m_fragmentMsg, m_initiator.getHSId()); currentFragResponse.setStatus(FragmentResponseMessage.SUCCESS, null); ...
java
@Override public void run() { try { VoltTable partitionKeys = null; partitionKeys = m_client.callProcedure("@GetPartitionKeys", "INTEGER").getResults()[0]; while (partitionKeys.advanceRow()) { m_client.callProcedure(new NullCallback(), "DeleteOldAdRequest...
java
public void updateLobUsage(boolean commit) { if (!hasLobOps) { return; } hasLobOps = false; if (commit) { for (int i = 0; i < createdLobs.size(); i++) { long lobID = createdLobs.get(i); int delta = lobUsageCount.get(lobID, 0); ...
java
public void allocateLobForResult(ResultLob result, InputStream inputStream) { long resultLobId = result.getLobID(); CountdownInputStream countStream; switch (result.getSubType()) { case ResultLob.LobResultTypes.REQUEST_CREATE_BY...
java
@Override public void resolveColumnIndexes() { // First, assert that our topology is sane and then // recursively resolve all child/inline column indexes IndexScanPlanNode index_scan = (IndexScanPlanNode) getInlinePlanNode(PlanNodeType.INDEXSCAN); assert(m_children.si...
java
public void resolveSortDirection() { AbstractPlanNode outerTable = m_children.get(0); if (m_joinType == JoinType.FULL) { // Disable the usual optimizations for ordering join output by // outer table only. In case of FULL join, the unmatched inner table tuples // get a...
java
protected long discountEstimatedProcessedTupleCount(AbstractPlanNode childNode) { // Discount estimated processed tuple count for the outer child based on the number of // filter expressions this child has with a rapidly diminishing effect // that ranges from a discount of 0.09 (ORETATION_EQAUL)...
java
public Serializable getObject() { try { return InOutUtil.deserialize(data); } catch (Exception e) { throw Error.error(ErrorCode.X_22521, e.toString()); } }
java
@VisibleForTesting static char[][] createReplacementArray(Map<Character, String> map) { checkNotNull(map); // GWT specific check (do not optimize) if (map.isEmpty()) { return EMPTY_REPLACEMENT_ARRAY; } char max = Collections.max(map.keySet()); char[][] replacements = new char[max + 1][]; ...
java
public int getPrecision(int param) throws SQLException { checkRange(param); Type type = rmd.columnTypes[--param]; if (type.isDateTimeType()) { return type.displaySize(); } else { long size = type.precision; if (size > Integer.MAX_VALUE) { ...
java
public String getParameterTypeName(int param) throws SQLException { checkRange(param); return rmd.columnTypes[--param].getNameString(); }
java
protected static TaskLog initializeTaskLog(String voltroot, int pid) { // Construct task log and start logging task messages File overflowDir = new File(voltroot, "join_overflow"); return ProClass.newInstanceOf("org.voltdb.rejoin.TaskLogImpl", "Join", ProClass.HANDLER_LOG, pid, ...
java
protected void restoreBlock(RestoreWork rejoinWork, SiteProcedureConnection siteConnection) { kickWatchdog(true); rejoinWork.restore(siteConnection); }
java
protected void returnToTaskQueue(boolean sourcesReady) { if (sourcesReady) { // If we've done something meaningful, go ahead and return ourselves to the queue immediately m_taskQueue.offer(this); } else { // Otherwise, avoid spinning too aggressively, so wait a mi...
java
static void putLong(ByteBuffer buffer, long value) { value = (value << 1) ^ (value >> 63); if (value >>> 7 == 0) { buffer.put((byte) value); } else { buffer.put((byte) ((value & 0x7F) | 0x80)); if (value >>> 14 == 0) { buffer.put((byte) (value ...
java
static void putInt(ByteBuffer buffer, int value) { value = (value << 1) ^ (value >> 31); if (value >>> 7 == 0) { buffer.put((byte) value); } else { buffer.put((byte) ((value & 0x7F) | 0x80)); if (value >>> 14 == 0) { buffer.put((byte) (value >>...
java
static long getLong(ByteBuffer buffer) { long v = buffer.get(); long value = v & 0x7F; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 7; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 14; ...
java
static int getInt (ByteBuffer buffer) { int v = buffer.get(); int value = v & 0x7F; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 7; if ((v & 0x80) != 0) { v = buffer.get(); value |= (v & 0x7F) << 14; ...
java
static public void main(String[] sa) throws IOException, TarMalformatException { if (sa.length < 1) { System.out.println(RB.singleton.getString(RB.TARREADER_SYNTAX, TarReader.class.getName())); System.out.println(RB.singleton.getString(RB.LISTING_FORMAT)); ...
java
public static Date getDateFromUniqueId(long uniqueId) { long time = uniqueId >> (COUNTER_BITS + PARTITIONID_BITS); time += VOLT_EPOCH; return new Date(time); }
java
public static Object createObject(String classname) throws ParseException { Class<?> cl; try { cl = Class.forName(classname); } catch (ClassNotFoundException cnfe) { throw new ParseException("Unable to find the class: " + classname); }...
java
public static Number createNumber(String str) throws ParseException { try { if (str.indexOf('.') != -1) { return Double.valueOf(str); } return Long.valueOf(str); } catch (NumberFormatException e) { th...
java
private boolean fixupACL(List<Id> authInfo, List<ACL> acl) { if (skipACL) { return true; } if (acl == null || acl.size() == 0) { return false; } Iterator<ACL> it = acl.iterator(); LinkedList<ACL> toAdd = null; while (it.hasNext()) { ...
java
public boolean authenticate(ClientAuthScheme scheme, String fromAddress) { if (m_done) throw new IllegalStateException("this authentication request has a result"); boolean authenticated = false; try { authenticated = authenticateImpl(scheme, fromAddress); } catch (Exception e...
java
public long run( String symbol, TimestampType time, long seq_number, String exchange, int bidPrice, int bidSize, int askPrice, int askSize) throws VoltAbortException { // convert bid and ask 0 values to null ...
java
public static <K extends Comparable<?>, V> Builder<K, V> builder() { return new Builder<K, V>(); }
java
void setLeaderState(boolean isLeader) { m_isLeader = isLeader; // The leader doesn't truncate its own SP log; if promoted, // wipe out the SP portion of the existing log. This promotion // action always happens after repair is completed. if (m_isLeader) { if (!m_l...
java
public void deliver(VoltMessage msg) { if (!m_isLeader && msg instanceof Iv2InitiateTaskMessage) { final Iv2InitiateTaskMessage m = (Iv2InitiateTaskMessage) msg; // We can't repair read only SP transactions. Just don't log them to the repair log. if (m.isReadOnly()) { ...
java
private void truncate(long handle, boolean isSP) { // MIN value means no work to do, is a startup condition if (handle == Long.MIN_VALUE) { return; } Deque<RepairLog.Item> deq = null; if (isSP) { deq = m_logSP; if (m_truncationHandle < han...
java
public List<Iv2RepairLogResponseMessage> contents(long requestId, boolean forMPI) { List<Item> items = new LinkedList<Item>(); // All cases include the log of MP transactions items.addAll(m_logMP); // SP repair requests also want the SP transactions if (!forMPI) { ...
java
public final synchronized void endProcedure(boolean aborted, boolean failed, SingleCallStatsToken statsToken) { if (aborted) { m_procStatsData.m_abortCount++; } if (failed) { m_procStatsData.m_failureCount++; } m_procStatsData.m_invocations++; // ...
java
public final synchronized void endFragment(String stmtName, boolean isCoordinatorTask, boolean failed, boolean sampledStmt, long dur...
java
public synchronized Session newSession(Database db, User user, boolean readonly, boolean forLog, int timeZoneSeconds) { Session s = new Session(db, user, !forLog, !forLog, readonly, sessionIdCo...
java
public Session getSysSessionForScript(Database db) { Session session = new Session(db, db.getUserManager().getSysUser(), false, false, false, 0, 0); session.isProcessingScript = true; return session; }
java
public synchronized void closeAllSessions() { // don't disconnect system user; need it to save database Session[] sessions = getAllSessions(); for (int i = 0; i < sessions.length; i++) { sessions[i].close(); } }
java
public HostAndPort withDefaultPort(int defaultPort) { checkArgument(isValidPort(defaultPort)); if (hasPort() || port == defaultPort) { return this; } return new HostAndPort(host, defaultPort, hasBracketlessColons); }
java
public Runnable writeCatalogJarToFile(String path, String name, CatalogJarWriteMode mode) throws IOException { File catalogFile = new VoltFile(path, name); File catalogTmpFile = new VoltFile(path, name + ".tmp"); if (mode == CatalogJarWriteMode.CATALOG_UPDATE) { // This means a ...
java
public Class<?> classForProcedureOrUDF(String procedureClassName) throws LinkageError, ExceptionInInitializerError, ClassNotFoundException { return classForProcedureOrUDF(procedureClassName, m_catalogInfo.m_jarfile.getLoader()); }
java
public DeploymentType getDeployment() { if (m_memoizedDeployment == null) { m_memoizedDeployment = CatalogUtil.getDeployment( new ByteArrayInputStream(m_catalogInfo.m_deploymentBytes)); // This should NEVER happen if (m_memoizedDeployment == null) { ...
java
public boolean removeAfter(Node node) { if (node == null || node.next == null) { return false; } if (node.next == last) { last = node; } node.next = node.next.next; return true; }
java
protected ProcedurePartitionData parseCreateProcedureClauses( ProcedureDescriptor descriptor, String clauses) throws VoltCompilerException { // Nothing to do if there were no clauses. // Null means there's no partition data to return. // There's also no roles to add....
java
public static void interactWithTheUser() throws Exception { final SQLConsoleReader interactiveReader = new SQLConsoleReader(new FileInputStream(FileDescriptor.in), System.out); interactiveReader.setBellEnabled(false); FileHistory historyFile = null; try { ...
java
static void executeScriptFiles(List<FileInfo> filesInfo, SQLCommandLineReader parentLineReader, DDLParserCallback callback) throws IOException { LineReaderAdapter adapter = null; SQLCommandLineReader reader = null; StringBuilder statements = new StringBuilder(); if ( ! m_interactive...
java
private static void printUsage(String msg) { System.out.print(msg); System.out.println("\n"); m_exitCode = -1; printUsage(); }
java
static void printHelp(OutputStream prtStr) { try { InputStream is = SQLCommand.class.getResourceAsStream(m_readme); while (is.available() > 0) { byte[] bytes = new byte[is.available()]; // Fix for ENG-3440 is.read(bytes, 0, bytes.length); ...
java
public static void main(String args[]) { System.setProperty("voltdb_no_logging", "true"); int exitCode = mainWithReturnCode(args); System.exit(exitCode); }
java
private synchronized void checkTimeout(final long timeoutMs) { final Entry<Integer, SendWork> oldest = m_outstandingWork.firstEntry(); if (oldest != null) { final long now = System.currentTimeMillis(); SendWork work = oldest.getValue(); if ((now - work.m_ts) > timeout...
java
synchronized void clearOutstanding() { if (m_outstandingWork.isEmpty() && (m_outstandingWorkCount.get() == 0)) { return; } rejoinLog.trace("Clearing outstanding work."); for (Entry<Integer, SendWork> e : m_outstandingWork.entrySet()) { e.getValue().discard(); ...
java
@Override public synchronized void receiveAck(int blockIndex) { SendWork work = m_outstandingWork.get(blockIndex); // releases the BBContainers and cleans up if (work == null || work.m_ackCounter == null) { rejoinLog.warn("Received invalid blockIndex ack for targetId " + m_targe...
java
synchronized ListenableFuture<Boolean> send(StreamSnapshotMessageType type, int blockIndex, BBContainer chunk, boolean replicatedTable) { SettableFuture<Boolean> sendFuture = SettableFuture.create(); rejoinLog.trace("Sending block " + blockIndex + " of type " + (replicatedTable?"REPLICATED ":"PARTITIONE...
java
public static String toSchemaWithoutInlineBatches(String schema) { StringBuilder sb = new StringBuilder(schema); int i = sb.indexOf(batchSpecificComments); if (i != -1) { sb.delete(i, i + batchSpecificComments.length()); } i = sb.indexOf(startBatch); if (i != ...
java
final void shutdown() throws InterruptedException { // stop the old proc call reaper m_timeoutReaperHandle.cancel(false); m_ex.shutdown(); if (CoreUtils.isJunitTest()) { m_ex.awaitTermination(1, TimeUnit.SECONDS); } else { m_ex.awaitTermination(365, TimeUn...
java
public long getPartitionForParameter(byte typeValue, Object value) { if (m_hashinator == null) { return -1; } return m_hashinator.getHashedPartitionForParameter(typeValue, value); }
java
private void refreshPartitionKeys(boolean topologyUpdate) { long interval = System.currentTimeMillis() - m_lastPartitionKeyFetched.get(); if (!m_useClientAffinity && interval < PARTITION_KEYS_INFO_REFRESH_FREQUENCY) { return; } try { ProcedureInvocation invocat...
java
public void addSortExpressions(List<AbstractExpression> sortExprs, List<SortDirectionType> sortDirs) { assert(sortExprs.size() == sortDirs.size()); for (int i = 0; i < sortExprs.size(); ++i) { addSortExpression(sortExprs.get(i), sortDirs.get(i)); } }
java
public void addSortExpression(AbstractExpression sortExpr, SortDirectionType sortDir) { assert(sortExpr != null); // PlanNodes all need private deep copies of expressions // so that the resolveColumnIndexes results // don't get bashed by other nodes or subsequent planner runs ...
java
static java.util.logging.Level getPriorityForLevel(Level level) { switch (level) { case DEBUG: return java.util.logging.Level.FINEST; case ERROR: return java.util.logging.Level.SEVERE; case FATAL: return java.util.logging.Level...
java
void checkAddColumn(ColumnSchema col) { if (table.isText() && !table.isEmpty(session)) { throw Error.error(ErrorCode.X_S0521); } if (table.findColumn(col.getName().name) != -1) { throw Error.error(ErrorCode.X_42504); } if (col.isPrimaryKey() && table.ha...
java
void makeNewTable(OrderedHashSet dropConstraintSet, OrderedHashSet dropIndexSet) { Table tn = table.moveDefinition(session, table.tableType, null, null, null, -1, 0, dropConstraintSet, dropIndexSet); ...
java
Index addIndex(int[] col, HsqlName name, boolean unique, boolean migrating) { Index newindex; if (table.isEmpty(session) || table.isIndexingMutable()) { PersistentStore store = session.sessionData.getRowStore(table); newindex = table.createIndex(store, name, col, null, null, u...
java
void dropIndex(String indexName) { Index index; index = table.getIndex(indexName); if (table.isIndexingMutable()) { table.dropIndex(session, indexName); } else { OrderedHashSet indexSet = new OrderedHashSet(); indexSet.add(table.getIndex(indexName)...
java
void retypeColumn(ColumnSchema oldCol, ColumnSchema newCol) { boolean allowed = true; int oldType = oldCol.getDataType().typeCode; int newType = newCol.getDataType().typeCode; if (!table.isEmpty(session) && oldType != newType) { allowed = newCol.getD...
java
void setColNullability(ColumnSchema column, boolean nullable) { Constraint c = null; int colIndex = table.getColumnIndex(column.getName().name); if (column.isNullable() == nullable) { return; } if (nullable) { if (column.isPrimaryKey()) { ...
java
void setColDefaultExpression(int colIndex, Expression def) { if (def == null) { table.checkColumnInFKConstraint(colIndex, Constraint.SET_DEFAULT); } table.setDefaultExpression(colIndex, def); }
java
public boolean setTableType(Session session, int newType) { int currentType = table.getTableType(); if (currentType == newType) { return false; } switch (newType) { case TableBase.CACHED_TABLE : break; case TableBase.MEMORY_TABLE :...
java
Index addExprIndex(int[] col, Expression[] indexExprs, HsqlName name, boolean unique, boolean migrating, Expression predicate) { Index newindex; if (table.isEmpty(session) || table.isIndexingMutable()) { newindex = table.createAndAddExprIndexStructure(name, col, indexExprs, unique, migrati...
java
Index addIndex(int[] col, HsqlName name, boolean unique, boolean migrating, Expression predicate) { return addIndex(col, name, unique, migrating).withPredicate(predicate); }
java
static public ParsedColInfo fromOrderByXml(AbstractParsedStmt parsedStmt, VoltXMLElement orderByXml) { // A generic adjuster that just calls finalizeValueTypes ExpressionAdjuster adjuster = new ExpressionAdjuster() { @Override public AbstractExpression adjust(Abstract...
java
static public ParsedColInfo fromOrderByXml(AbstractParsedStmt parsedStmt, VoltXMLElement orderByXml, ExpressionAdjuster adjuster) { // make sure everything is kosher assert(orderByXml.name.equalsIgnoreCase("orderby")); // get desc/asc String desc = orderByXml.attributes.get...
java
public SchemaColumn asSchemaColumn() { String columnAlias = (m_alias == null) ? m_columnName : m_alias; return new SchemaColumn(m_tableName, m_tableAlias, m_columnName, columnAlias, m_expression, m_differentiator); }
java
public static void crashVoltDB(String reason, String traces[], String filename, int lineno) { VoltLogger hostLog = new VoltLogger("HOST"); String fn = (filename == null) ? "unknown" : filename; String re = (reason == null) ? "Fatal EE error." : reason; hostLog.fatal(re + " In " + fn + ":...
java
public byte[] nextDependencyAsBytes(final int dependencyId) { final VoltTable vt = m_dependencyTracker.nextDependency(dependencyId); if (vt != null) { final ByteBuffer buf2 = PrivateVoltTableFactory.getTableDataReference(vt); int pos = buf2.position(); byte[] bytes =...
java
public void loadCatalog(long timestamp, String serializedCatalog) { try { setupProcedure(null); m_fragmentContext = FragmentContext.CATALOG_LOAD; coreLoadCatalog(timestamp, getStringBytes(serializedCatalog)); } finally { m_fragmentContext = Fragmen...
java
public final void updateCatalog(final long timestamp, final boolean isStreamUpdate, final String diffCommands) throws EEException { try { setupProcedure(null); m_fragmentContext = FragmentContext.CATALOG_UPDATE; coreUpdateCatalog(timestamp, isStreamUpdate, diffCommands); ...
java
public FastDeserializer executePlanFragments( int numFragmentIds, long[] planFragmentIds, long[] inputDepIds, Object[] parameterSets, DeterminismHash determinismHash, String[] sqlTexts, boolean[] isWriteFrags, int[] sqlCRCs,...
java
public synchronized void setFlushInterval(long delay, long seconds) { if (m_flush != null) { m_flush.cancel(false); m_flush = null; } if (seconds > 0) { m_flush = m_ses.scheduleAtFixedRate(new Runnable() { @Override public void ...
java
@Override public synchronized void close() { if (isClosed) { return; } rollback(false); try { database.logger.writeToLog(this, Tokens.T_DISCONNECT); } catch (HsqlException e) {} sessionData.closeAllNavigators(); sessionData.persiste...
java
public void setIsolation(int level) { if (isInMidTransaction()) { throw Error.error(ErrorCode.X_25001); } if (level == SessionInterface.TX_READ_UNCOMMITTED) { isReadOnly = true; } isolationMode = level; if (isolationMode != isolationModeDefault...
java
void checkDDLWrite() { checkReadWrite(); if (isProcessingScript || isProcessingLog) { return; } if (database.isFilesReadOnly()) { throw Error.error(ErrorCode.DATABASE_IS_READONLY); } }
java
void addDeleteAction(Table table, Row row) { // tempActionHistory.add("add delete action " + actionTimestamp); if (abortTransaction) { // throw Error.error(ErrorCode.X_40001); } database.txManager.addDeleteAction(this, table, row); }
java
@Override public synchronized void setAutoCommit(boolean autocommit) { if (isClosed) { return; } if (autocommit != isAutoCommit) { commit(false); isAutoCommit = autocommit; } }
java
@Override public synchronized void commit(boolean chain) { // tempActionHistory.add("commit " + actionTimestamp); if (isClosed) { return; } if (!isTransaction) { isReadOnly = isReadOnlyDefault; isolationMode = isolationModeDefault; ...
java
@Override public synchronized void rollback(boolean chain) { // tempActionHistory.add("rollback " + actionTimestamp); if (isClosed) { return; } if (!isTransaction) { isReadOnly = isReadOnlyDefault; isolationMode = isolationModeDefault; ...
java
@Override public synchronized void savepoint(String name) { int index = sessionContext.savepoints.getIndex(name); if (index != -1) { sessionContext.savepoints.remove(name); sessionContext.savepointTimestamps.remove(index); } sessionContext.savepoints.add(na...
java
@Override public synchronized void rollbackToSavepoint(String name) { if (isClosed) { return; } int index = sessionContext.savepoints.getIndex(name); if (index < 0) { throw Error.error(ErrorCode.X_3B001, name); } database.txManager.rollback...
java
public synchronized void rollbackToSavepoint() { if (isClosed) { return; } String name = (String) sessionContext.savepoints.getKey(0); database.txManager.rollbackSavepoint(this, 0); try { database.logger.writeToLog(this, getSavepointRollbackSQL(name));...
java
@Override public synchronized void releaseSavepoint(String name) { // remove this and all later savepoints int index = sessionContext.savepoints.getIndex(name); if (index < 0) { throw Error.error(ErrorCode.X_3B001, name); } while (sessionContext.savepoints.size...
java
public void setReadOnly(boolean readonly) { if (!readonly && database.databaseReadOnly) { throw Error.error(ErrorCode.DATABASE_IS_READONLY); } if (isInMidTransaction()) { throw Error.error(ErrorCode.X_25001); } isReadOnly = readonly; }
java
private Result executeResultUpdate(Result cmd) { long id = cmd.getResultId(); int actionType = cmd.getActionType(); Result result = sessionData.getDataResult(id); if (result == null) { return Result.newErrorResult(Error.error(ErrorCode.X_24501)); } ...
java
HsqlName getSchemaHsqlName(String name) { return name == null ? currentSchema : database.schemaManager.getSchemaHsqlName(name); }
java
public String getSchemaName(String name) { return name == null ? currentSchema.name : database.schemaManager.getSchemaName(name); }
java
public Table defineLocalTable(HsqlName tableName, HsqlName[] colNames, Type[] colTypes) { // I'm not sure the table type, here TableBase.CACHED_TABLE, matters // all that much. assert(localTables != null); Table newTable = TableUtil.newTable(database, TableBase.CACHED_TABLE, tableName); ...
java
public void updateLocalTable(HsqlName queryName, Type[] finalTypes) { assert(localTables != null); Table tbl = getLocalTable(queryName.name); assert (tbl != null); TableUtil.updateColumnTypes(tbl, finalTypes); }
java
void logSequences() { OrderedHashSet set = sessionData.sequenceUpdateSet; if (set == null || set.isEmpty()) { return; } for (int i = 0, size = set.size(); i < size; i++) { NumberSequence sequence = (NumberSequence) set.get(i); database.logger.write...
java
public void addLiteralSchema(String ddlText) throws IOException { File temp = File.createTempFile("literalschema", "sql"); temp.deleteOnExit(); FileWriter out = new FileWriter(temp); out.write(ddlText); out.close(); addSchema(URLEncoder.encode(temp.getAbsolutePath(), "UTF...
java
public void addSchema(String schemaURL) { try { schemaURL = URLDecoder.decode(schemaURL, "UTF-8"); } catch (final UnsupportedEncodingException e) { e.printStackTrace(); System.exit(-1); } assert(m_schemas.contains(schemaURL) == false); final Fi...
java
private static boolean isParameterized(VoltXMLElement elm) { final String name = elm.name; if (name.equals("value")) { return elm.getBoolAttribute("isparam", false); } else if (name.equals("vector") || name.equals("row")) { return elm.children.stream().anyMatch(Expression...
java
private static String getType(Database db, VoltXMLElement elm) { final String type = elm.getStringAttribute("valuetype", ""); if (! type.isEmpty()) { return type; } else if (elm.name.equals("columnref")) { final String tblName = elm.getStringAttribute("table", ""); ...
java
private static String guessParameterType(Database db, VoltXMLElement elm) { if (! isParameterized(elm) || ! elm.name.equals("operation")) { return ""; } else { final ExpressionType op = mapOfVoltXMLOpType.get(elm.attributes.get("optype")); assert op != null; ...
java