void Client:: ha_get_all_columns(const std::string& column_family, const std::string& key, std::vector<ColumnOrSuperColumn>& columns, SAS::TrailId trail) { HA(get_row, trail, column_family, key, columns); }
void Client:: ha_multiget_columns_with_prefix(const std::string& column_family, const std::vector<std::string>& keys, const std::string& prefix, std::map<std::string, std::vector<ColumnOrSuperColumn> >& columns, SAS::TrailId trail) { HA(multiget_columns_with_prefix, trail, column_family, keys, prefix, columns); }
void Client:: ha_get_columns_with_prefix(const std::string& column_family, const std::string& key, const std::string& prefix, std::vector<ColumnOrSuperColumn>& columns, SAS::TrailId trail) { HA(get_columns_with_prefix, trail, column_family, key, prefix, columns); }
S si(const C *n) { S s,a=(S)(((S *)(SymHashTable->b))+((SymHashTable->nb-1)&HA(n))); for(;(s=a->s)&&strneq(n,s->n);a=s) ; if(s==0) { int rc; #if defined(linux) static int initMutex=1; if(initMutex) initMutex=_initMutex(); #endif if(0!=(rc=pthread_mutex_lock(&newSymbol_lock))) { perror("si() pthread_mutex_lock"); } { /* Need to re-check for Symbol after getting lock */ S a=(S)(((S *)(SymHashTable->b))+((SymHashTable->nb-1)&HA(n))); for(;(s=a->s)&&strneq(n,s->n);a=s) ; if(s==0) { s=newSymbol(n,a); } } if(rc==0 && pthread_mutex_unlock(&newSymbol_lock)) { perror("si() pthread_mutex_unlock"); } } R s; }
Z void growSymHashTable(void) { I i; S s0,s1,*sp; HT newtable=hti(4*SymHashTable->nb); for(i=0;i<SymHashTable->nb;++i) for(s0=(S)SymHashTable->b[i];s0;s0=s1) { s1=s0->s; sp=(S *)(newtable->b+((newtable->nb-1)&HA(s0->n))); s0->s=*sp; *sp=s0; ++newtable->ni; } bfree((char *)SymHashTable); SymHashTable=newtable; }