public static class CompositeType.Builder extends java.lang.Object implements ColumnNameBuilder
Constructor and Description |
---|
CompositeType.Builder(CompositeType composite) |
CompositeType.Builder(CompositeType composite,
java.util.List<java.nio.ByteBuffer> components,
byte[] endOfComponents) |
Modifier and Type | Method and Description |
---|---|
CompositeType.Builder |
add(java.nio.ByteBuffer bb)
Add a new ByteBuffer as the next component for this name.
|
CompositeType.Builder |
add(java.nio.ByteBuffer buffer,
Relation.Type op)
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.
|
int |
componentCount()
Returns the number of component already added to this builder.
|
CompositeType.Builder |
copy()
Clone this builder.
|
int |
remainingCount() |
public CompositeType.Builder(CompositeType composite)
public CompositeType.Builder(CompositeType composite, java.util.List<java.nio.ByteBuffer> components, byte[] endOfComponents)
public CompositeType.Builder add(java.nio.ByteBuffer buffer, Relation.Type op)
ColumnNameBuilder
add
in interface ColumnNameBuilder
op
- the relationship this component should respect.public CompositeType.Builder add(java.nio.ByteBuffer bb)
ColumnNameBuilder
add
in interface ColumnNameBuilder
bb
- the ByteBuffer to addpublic int componentCount()
ColumnNameBuilder
componentCount
in interface ColumnNameBuilder
public int remainingCount()
remainingCount
in interface ColumnNameBuilder
public java.nio.ByteBuffer build()
ColumnNameBuilder
build
in interface ColumnNameBuilder
public java.nio.ByteBuffer buildAsEndOfRange()
ColumnNameBuilder
buildAsEndOfRange
in interface ColumnNameBuilder
public CompositeType.Builder copy()
ColumnNameBuilder
copy
in interface ColumnNameBuilder
Copyright © 2014 The Apache Software Foundation