Package io.inversion.redis
Class RedisDb
java.lang.Object
io.inversion.Db<RedisDb>
io.inversion.redis.RedisDb
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected redis.clients.jedis.JedisPoolprotected org.slf4j.Loggerprotected intprotected Stringprotected intprotected intprotected intprotected intprotected intprotected booleanprotected booleanprotected booleanprotected intprotected intFields inherited from class io.inversion.Db
bootstrap, collections, dryRun, endpointPath, excludeColumns, includeColumns, includeTables, name, reservedParams, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidio.inversion.ResultsgetHost()intintintintintgetPort()intprotected redis.clients.jedis.JedisintintgetTtl()booleanbooleanbooleanbooleanwithBlockWhenExhausted(boolean blockWhenExhausted)withMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis)withNocacheParam(String nocacheParam)withNumTestsPerEvictionRun(int numTestsPerEvictionRun)withPoolMax(int poolMax)withPoolMin(int poolMin)withPort(int port)withReadSocketTimeout(int readSocketTimeout)withTestOnBorrow(boolean testOnBorrow)withTestOnReturn(boolean testOnReturn)withTestWhileIdle(boolean testWhileIdle)withTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis)withTtl(int ttl)Methods inherited from class io.inversion.Db
beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, configDb, doPatch, doShutdown, doShutdown, doStartup, filterOutJsonProperty, getCollectionByTableName, getCollections, getEndpointPath, getHref, getKey, getName, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapTo, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withEndpointPath, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withName, withType
-
Field Details
-
log
protected final org.slf4j.Logger log -
jedis
protected transient redis.clients.jedis.JedisPool jedis -
host
-
port
protected int port -
poolMin
protected int poolMin -
poolMax
protected int poolMax -
testOnBorrow
protected boolean testOnBorrow -
testOnReturn
protected boolean testOnReturn -
testWhileIdle
protected boolean testWhileIdle -
minEvictableIdleTimeMillis
protected int minEvictableIdleTimeMillis -
timeBetweenEvictionRunsMillis
protected int timeBetweenEvictionRunsMillis -
numTestsPerEvictionRun
protected int numTestsPerEvictionRun -
blockWhenExhausted
protected boolean blockWhenExhausted -
nocacheParam
-
readSocketTimeout
protected int readSocketTimeout -
ttl
protected int ttl
-
-
Constructor Details
-
RedisDb
public RedisDb()
-
-
Method Details
-
doSelect
public io.inversion.Results doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> queryTerms) throws io.inversion.ApiException- Specified by:
doSelectin classio.inversion.Db<RedisDb>- Throws:
io.inversion.ApiException
-
doUpsert
public List<String> doUpsert(io.inversion.Collection table, List<Map<String,Object>> rows) throws io.inversion.ApiException- Specified by:
doUpsertin classio.inversion.Db<RedisDb>- Throws:
io.inversion.ApiException
-
delete
public void delete(io.inversion.Collection table, List<Map<String,Object>> indexValues) throws io.inversion.ApiException- Specified by:
deletein classio.inversion.Db<RedisDb>- Throws:
io.inversion.ApiException
-
getRedisClient
protected redis.clients.jedis.Jedis getRedisClient() -
getHost
-
withHost
-
getPort
public int getPort() -
withPort
-
getPoolMin
public int getPoolMin() -
withPoolMin
-
getPoolMax
public int getPoolMax() -
withPoolMax
-
isTestOnBorrow
public boolean isTestOnBorrow() -
withTestOnBorrow
-
isTestOnReturn
public boolean isTestOnReturn() -
withTestOnReturn
-
isTestWhileIdle
public boolean isTestWhileIdle() -
withTestWhileIdle
-
getMinEvictableIdleTimeMillis
public int getMinEvictableIdleTimeMillis() -
withMinEvictableIdleTimeMillis
-
getTimeBetweenEvictionRunsMillis
public int getTimeBetweenEvictionRunsMillis() -
withTimeBetweenEvictionRunsMillis
-
getNumTestsPerEvictionRun
public int getNumTestsPerEvictionRun() -
withNumTestsPerEvictionRun
-
isBlockWhenExhausted
public boolean isBlockWhenExhausted() -
withBlockWhenExhausted
-
getNocacheParam
-
withNocacheParam
-
getReadSocketTimeout
public int getReadSocketTimeout() -
withReadSocketTimeout
-
getTtl
public int getTtl() -
withTtl
-