public static class CompositeType.Builder extends java.lang.Object implements ColumnNameBuilder
| Constructor and Description |
|---|
CompositeType.Builder(CompositeType composite) |
| Modifier and Type | Method and Description |
|---|---|
CompositeType.Builder |
add(java.nio.ByteBuffer bb)
Add a new ByteBuffer 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.
|
java.nio.ByteBuffer |
buildForRelation(Relation.Type op) |
int |
componentCount()
Returns the number of component already added to this builder.
|
CompositeType.Builder |
copy()
Clone this builder.
|
java.nio.ByteBuffer |
get(int i) |
java.nio.ByteBuffer |
getComponent(int i)
Returns the ith component added to this builder.
|
int |
getLength()
Returns the total length of the ByteBuffer that will
be returned by build().
|
int |
remainingCount() |
static CompositeType.Builder |
staticBuilder(CompositeType composite) |
public CompositeType.Builder(CompositeType composite)
public static CompositeType.Builder staticBuilder(CompositeType composite)
public CompositeType.Builder add(java.nio.ByteBuffer bb)
ColumnNameBuilderadd in interface ColumnNameBuilderbb - the ByteBuffer to addpublic int componentCount()
ColumnNameBuildercomponentCount in interface ColumnNameBuilderpublic int remainingCount()
remainingCount in interface ColumnNameBuilderpublic java.nio.ByteBuffer get(int i)
get in interface ColumnNameBuilderpublic java.nio.ByteBuffer build()
ColumnNameBuilderbuild in interface ColumnNameBuilderpublic java.nio.ByteBuffer buildAsEndOfRange()
ColumnNameBuilderbuildAsEndOfRange in interface ColumnNameBuilderpublic java.nio.ByteBuffer buildForRelation(Relation.Type op)
buildForRelation in interface ColumnNameBuilderpublic CompositeType.Builder copy()
ColumnNameBuildercopy in interface ColumnNameBuilderpublic java.nio.ByteBuffer getComponent(int i)
ColumnNameBuildergetComponent in interface ColumnNameBuilderi - the component to returnpublic int getLength()
ColumnNameBuildergetLength in interface ColumnNameBuilderCopyright © 2015 The Apache Software Foundation