|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scale7.cassandra.pelops.pool.ThriftPoolBase
public abstract class ThriftPoolBase
Abstract impl of IThriftPool
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.scale7.cassandra.pelops.pool.IThriftPool |
---|
IThriftPool.IPooledConnection |
Constructor Summary | |
---|---|
ThriftPoolBase()
|
Method Summary | |
---|---|
Mutator |
createMutator()
Create a mutator object using the current time as the operation time stamp. |
Mutator |
createMutator(long timestamp)
Create a mutator object with an arbitrary time stamp. |
Mutator |
createMutator(long timestamp,
boolean deleteIfNull)
Create a mutator object with an arbitrary time stamp. |
Mutator |
createMutator(long timestamp,
boolean deleteIfNull,
int ttl)
Create a mutator object with an arbitrary time stamp. |
Mutator |
createMutator(long timestamp,
int ttl)
Create a mutator object with an arbitrary time stamp. |
RowDeletor |
createRowDeletor()
Create a key deletor object using the current time as the operation time stamp. |
RowDeletor |
createRowDeletor(long timestamp)
Create a key deletor object with an arbitrary time stamp. |
Selector |
createSelector()
Create a selector object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.scale7.cassandra.pelops.pool.IThriftPool |
---|
getConnection, getConnectionExcept, getKeyspace, getOperandPolicy, shutdown |
Constructor Detail |
---|
public ThriftPoolBase()
Method Detail |
---|
public Selector createSelector()
selector
object..
createSelector
in interface IThriftPool
selector
objectpublic Mutator createMutator()
mutator
object using the current time as the operation time stamp.
The mutator
object must only be used to execute 1 mutation operation..
createMutator
in interface IThriftPool
mutator
objectpublic Mutator createMutator(long timestamp)
mutator
object with an arbitrary time stamp. The mutator
object
must only be used to execute 1 mutation operation.
The created mutator will be created with the value of OperandPolicy.isDeleteIfNull()
..
createMutator
in interface IThriftPool
timestamp
- The default time stamp to use for operations
mutator
objectpublic Mutator createMutator(long timestamp, int ttl)
IThriftPool
mutator
object with an arbitrary time stamp. The mutator
object
must only be used to execute 1 mutation operation.
The created mutator will be created with the value of OperandPolicy.isDeleteIfNull()
.
createMutator
in interface IThriftPool
timestamp
- The default time stamp to use for operationsttl
- the ttl (in seconds) that columns created using the various Mutator.newColumn(org.scale7.cassandra.pelops.Bytes , org.scale7.cassandra.pelops.Bytes)
will default to
mutator
objectpublic Mutator createMutator(long timestamp, boolean deleteIfNull)
mutator
object with an arbitrary time stamp. The mutator
object
must only be used to execute 1 mutation operation..
createMutator
in interface IThriftPool
timestamp
- The default time stamp to use for operationsdeleteIfNull
- If true the mutator will default to issuing deletes when it detects null values on a column
passed to the various write methods.
mutator
objectpublic Mutator createMutator(long timestamp, boolean deleteIfNull, int ttl)
IThriftPool
mutator
object with an arbitrary time stamp. The mutator
object
must only be used to execute 1 mutation operation.
createMutator
in interface IThriftPool
timestamp
- The default time stamp to use for operationsdeleteIfNull
- If true the mutator will default to issuing deletes when it detects null values on a column
passed to the various write methods.ttl
- the ttl (in seconds) that columns created using the various Mutator.newColumn(org.scale7.cassandra.pelops.Bytes , org.scale7.cassandra.pelops.Bytes)
will default to
mutator
objectpublic RowDeletor createRowDeletor()
key deletor
object using the current time as the operation time stamp..
createRowDeletor
in interface IThriftPool
key deletor
objectpublic RowDeletor createRowDeletor(long timestamp)
key deletor
object with an arbitrary time stamp..
createRowDeletor
in interface IThriftPool
timestamp
- The default time stamp to use for operations
key deletor
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |