public int size() { return THashMap.this.size(); }
/** * Return number of unique rows in the hash table. * <p> * * @return The number of unique rows in the hash table. * * @exception StandardException Standard exception policy. **/ public int size() throws StandardException { if( diskHashtable == null) return(hash_table.size()); return hash_table.size() + diskHashtable.size(); }
/** * Return number of unique rows in the hash table. * <p> * * @return The number of unique rows in the hash table. * * @exception StandardException Standard exception policy. **/ public int size() throws StandardException { if( diskHashtable == null) return(hash_table.size()); return hash_table.size() + diskHashtable.size(); }
/** * Return number of unique rows in the hash table. * <p> * * @return The number of unique rows in the hash table. * * @exception StandardException Standard exception policy. **/ public int size() throws StandardException { if( diskHashtable == null) return(hash_table.size()); return hash_table.size() + diskHashtable.size(); }
/** * Compares this map with another map for equality of their stored * entries. * * @param other an <code>Object</code> value * @return a <code>boolean</code> value */ @Override // GemStoneAddition public boolean equals(Object other) { if (! (other instanceof Map)) { return false; } Map that = (Map)other; if (that.size() != this.size()) { return false; } return forEachEntry(new EqProcedure(that)); }
public static ClientConnection create(String host, int port, Properties p) throws SQLException { final THashMap connProps = new THashMap(); @SuppressWarnings("unchecked") Map<String, String> props = connProps; String userName = null; String password = null; for (String propName : p.stringPropertyNames()) { if (Attribute.USERNAME_ATTR.equals(propName) || Attribute.USERNAME_ALT_ATTR.equals(propName)) { userName = p.getProperty(propName); } else if (Attribute.PASSWORD_ATTR.equals(propName)) { password = p.getProperty(propName); } else { connProps.put(propName, p.getProperty(propName)); } } if (connProps.size() == 0) { props = null; } return new ClientConnection(host, port, userName, password, props); }
if (connProps.size() == 0) { props = null;
public static void writeTHashMap(THashMap map, final DataOutput out) throws IOException { InternalDataSerializer.checkOut(out); int size; if (map == null) { size = -1; } else { size = map.size(); } InternalDataSerializer.writeArrayLength(size, out); if (DEBUG) { InternalDataSerializer.logger.info( LocalizedStrings.DEBUG, "Writing THashMap with " + size + " elements: " + map); } if (size > 0) { map.forEachEntry(new InternalDataSerializer.WriteKeyValue(out)); } }
CompilerContext cc = getCompilerContext(); if (cc != null && cc.isNCJoinOnRemote()) { if (cc.getNCJMetaDataOnRemote().size() > 0) { return true;
CompilerContext cc = getCompilerContext(); if (cc != null && cc.isNCJoinOnRemote()) { if (cc.getNCJMetaDataOnRemote().size() > 0) { return true;
CompilerContext cc = getCompilerContext(); if (cc != null && cc.isNCJoinOnRemote()) { if (cc.getNCJMetaDataOnRemote().size() > 0) { return true;
versionToConnMap.size() + 1); final int sendBufferSize = firstCon.getSendBufferSize(); if (numCons > numVersioned) {
if (versionSources != null && (nSources = versionSources.size()) > 0) { InternalDataSerializer.writeUnsignedVL(nSources, out);
this.visitedMap = new THashMap(); else if (this.visitedMap.size() > 0 && (delta = this.visitedMap.get(v.getClass())) != null) { return v.mergeDeltaState(delta, this);
this.visitedMap = new THashMap(); else if (this.visitedMap.size() > 0 && (delta = this.visitedMap.get(v.getClass())) != null) { return v.mergeDeltaState(delta, this);
this.visitedMap = new THashMap(); else if (this.visitedMap.size() > 0 && (delta = this.visitedMap.get(v.getClass())) != null) { return v.mergeDeltaState(delta, this);