|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.marshal.CompositeType.Builder
public static class CompositeType.Builder
| Constructor Summary | |
|---|---|
CompositeType.Builder(CompositeType composite)
|
|
CompositeType.Builder(CompositeType composite,
java.util.List<java.nio.ByteBuffer> components,
byte[] endOfComponents)
|
|
| Method Summary | |
|---|---|
CompositeType.Builder |
add(java.nio.ByteBuffer bb)
Add a new ByteBuffer as the next component for this name. |
CompositeType.Builder |
add(Term t,
Relation.Type op,
java.util.List<java.nio.ByteBuffer> variables)
Add a new Term as the next component for this name. |
java.nio.ByteBuffer |
build()
Build the column name. |
java.nio.ByteBuffer |
buildAsEndOfRange()
Build the column name so that the result sorts at the end of the range represented by this (uncomplete) column name. |
int |
componentCount()
Returns the number of component already added to this builder. |
CompositeType.Builder |
copy()
Clone this builder. |
int |
remainingCount()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeType.Builder(CompositeType composite)
public CompositeType.Builder(CompositeType composite,
java.util.List<java.nio.ByteBuffer> components,
byte[] endOfComponents)
| Method Detail |
|---|
public CompositeType.Builder add(Term t,
Relation.Type op,
java.util.List<java.nio.ByteBuffer> variables)
throws InvalidRequestException
ColumnNameBuilder
add in interface ColumnNameBuildert - the Term to addop - the relationship this component should respect.variables - the variables corresponding to prepared markers
InvalidRequestExceptionpublic CompositeType.Builder add(java.nio.ByteBuffer bb)
ColumnNameBuilder
add in interface ColumnNameBuilderbb - the ByteBuffer to add
public int componentCount()
ColumnNameBuilder
componentCount in interface ColumnNameBuilderpublic int remainingCount()
remainingCount in interface ColumnNameBuilderpublic java.nio.ByteBuffer build()
ColumnNameBuilder
build in interface ColumnNameBuilderpublic java.nio.ByteBuffer buildAsEndOfRange()
ColumnNameBuilder
buildAsEndOfRange in interface ColumnNameBuilderpublic CompositeType.Builder copy()
ColumnNameBuilder
copy in interface ColumnNameBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||