cql3: convert ColumnIdentifier to C++

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Pekka Enberg
2014-12-30 14:00:12 +02:00
committed by Avi Kivity
parent 5025ebfb61
commit bb46ca9003
2 changed files with 21 additions and 2 deletions

View File

@@ -15,8 +15,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cassandra.cql3;
/*
* Copyright 2014 Cloudius Systems
*
* Modified by Cloudius Systems
*/
#ifndef CQL3_COLUMN_IDENTIFIER_HH
#define CQL3_COLUMN_IDENTIFIER_HH
namespace cql3 {
#if 0
import java.util.List;
import java.util.Locale;
import java.nio.ByteBuffer;
@@ -34,13 +45,15 @@ import org.apache.cassandra.db.marshal.UTF8Type;
import org.apache.cassandra.utils.ByteBufferUtil;
import org.apache.cassandra.utils.ObjectSizes;
import org.apache.cassandra.utils.memory.AbstractAllocator;
#endif
/**
* Represents an identifer for a CQL column definition.
* TODO : should support light-weight mode without text representation for when not interned
*/
public class ColumnIdentifier extends org.apache.cassandra.cql3.selection.Selectable implements IMeasurableMemory
class column_identifier /*extends org.apache.cassandra.cql3.selection.Selectable implements IMeasurableMemory*/
{
#if 0
public final ByteBuffer bytes;
private final String text;
@@ -179,4 +192,9 @@ public class ColumnIdentifier extends org.apache.cassandra.cql3.selection.Select
return text;
}
}
#endif
};
}
#endif

View File

@@ -17,3 +17,4 @@
#include "cql_statement.hh"
#include "variable_specifications.hh"
#include "column_identifier.hh"