cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1164693 - /cassandra/trunk/src/java/org/apache/cassandra/db/marshal/
Date Fri, 02 Sep 2011 20:26:54 GMT
Author: eevans
Date: Fri Sep  2 20:26:53 2011
New Revision: 1164693

URL: http://svn.apache.org/viewvc?rev=1164693&view=rev
Log:
remove extraneous methods from o.a.c.db.marshal classes

Patch by eevans; reviewed by Rick Shaw for CASSANDRA-2936

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCommutativeType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCompositeType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractUUIDType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AsciiType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BooleanType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BytesType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DateType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DoubleType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/FloatType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/IntegerType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LexicalUUIDType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LongType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/ReversedType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UTF8Type.java
    cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UUIDType.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCommutativeType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCommutativeType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCommutativeType.java
(original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCommutativeType.java
Fri Sep  2 20:26:53 2011
@@ -48,44 +48,4 @@ public abstract class AbstractCommutativ
      * create commutative column
      */
     public abstract Column createColumn(ByteBuffer name, ByteBuffer value, long timestamp);
-
-    public Class<Long> getType()
-    {
-        return Long.class;
-    }
-
-    public boolean isSigned()
-    {
-        return true;
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return false;
-    }
-
-    public boolean isCurrency()
-    {
-        return false;
-    }
-
-    public int getPrecision(Long obj)
-    {
-        return obj.toString().length();
-    }
-
-    public int getScale(Long obj)
-    {
-        return 0;
-    }
-
-    public int getJdbcType()
-    {
-        return Types.INTEGER;
-    }
-
-    public boolean needsQuotes()
-    {
-        return false;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCompositeType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCompositeType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCompositeType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractCompositeType.java Fri
Sep  2 20:26:53 2011
@@ -229,55 +229,11 @@ public abstract class AbstractCompositeT
         return value;
     }
 
-    public Class<ByteBuffer> getType()
-    {
-        return ByteBuffer.class;
-    }
-
     public String toString(ByteBuffer value)
     {
         return getString(value);
     }
 
-    /*
-     * JDBC metadata. For now we don't allow the use of compositeType with
-     * JDBC. We'll have to figure out what is the best solution here.
-     */
-    public boolean isSigned()
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
-    public boolean isCaseSensitive()
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
-    public boolean isCurrency()
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
-    public int getPrecision(ByteBuffer obj)
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
-    public int getScale(ByteBuffer obj)
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
-    public int getJdbcType()
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
-    public boolean needsQuotes()
-    {
-        throw new UnsupportedOperationException("Not support for JDBC yet");
-    }
-
     abstract protected AbstractType getNextComparator(int i, ByteBuffer bb);
     abstract protected AbstractType getNextComparator(int i, ByteBuffer bb1, ByteBuffer bb2);
     abstract protected AbstractType getAndAppendNextComparator(int i, ByteBuffer bb, StringBuilder
sb);

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AbstractType.java Fri Sep  2
20:26:53 2011
@@ -146,21 +146,6 @@ public abstract class AbstractType<T> im
     {
         return false;
     }
-    
-    /** returns the class this AbstractType represents. */
-    public abstract Class<T> getType();
-
-    //
-    // JDBC metadata
-    //
-
-    public abstract boolean isSigned();
-    public abstract boolean isCaseSensitive();
-    public abstract boolean isCurrency();
-    public abstract int getPrecision(T obj);
-    public abstract int getScale(T obj);
-    public abstract int getJdbcType();
-    public abstract boolean needsQuotes();
 
     public static AbstractType parseDefaultParameters(AbstractType baseType, TypeParser parser)
throws ConfigurationException
     {

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AsciiType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AsciiType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AsciiType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/AsciiType.java Fri Sep  2 20:26:53
2011
@@ -82,44 +82,4 @@ public class AsciiType extends AbstractT
                 throw new MarshalException("Invalid byte for ascii: " + Byte.toString(b));
         }
     }
-
-    public Class<String> getType()
-    {
-        return String.class;
-    }
-
-    public boolean isSigned()
-    {
-        return false;
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return true;
-    }
-
-    public boolean isCurrency()
-    {
-        return false;
-    }
-
-    public int getPrecision(String obj)
-    {
-        return -1;
-    }
-
-    public int getScale(String obj)
-    {
-        return -1;
-    }
-
-    public int getJdbcType()
-    {
-        return Types.VARCHAR;
-    }
-
-    public boolean needsQuotes()
-    {
-        return true;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BooleanType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BooleanType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BooleanType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BooleanType.java Fri Sep  2 20:26:53
2011
@@ -92,45 +92,4 @@ public class BooleanType extends Abstrac
       if (bytes.remaining() != 1 && bytes.remaining() != 0)
           throw new MarshalException(String.format("Expected 1 or 0 byte value (%d)", bytes.remaining()));
   }
-
-  public Class<Boolean> getType()
-  {
-      return Boolean.class;
-  }
-
-  public boolean isSigned()
-  {
-    return false;
-  }
-
-  public boolean isCaseSensitive()
-  {
-    return false;
-  }
-
-  public boolean isCurrency()
-  {
-    return false;
-  }
-
-  public int getPrecision(Boolean obj)
-  {
-    return -1;
-  }
-
-  public int getScale(Boolean obj)
-  {
-    return -1;
-  }
-
-  public int getJdbcType()
-  {
-    return Types.BOOLEAN;
-  }
-
-  public boolean needsQuotes()
-  {
-    return false;
-  }
-
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BytesType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BytesType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BytesType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/BytesType.java Fri Sep  2 20:26:53
2011
@@ -84,44 +84,4 @@ public class BytesType extends AbstractT
     {
         // all bytes are legal.
     }
-
-    public Class<ByteBuffer> getType()
-    {
-        return ByteBuffer.class;
-    }
-
-    public boolean isSigned()
-    {
-        return false;
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return false;
-    }
-
-    public boolean isCurrency()
-    {
-        return false;
-    }
-
-    public int getPrecision(ByteBuffer obj)
-    {
-        return -1;
-    }
-
-    public int getScale(ByteBuffer obj)
-    {
-        return -1;
-    }
-
-    public int getJdbcType()
-    {
-        return Types.BINARY;
-    }
-
-    public boolean needsQuotes()
-    {
-        return true;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DateType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DateType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DateType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DateType.java Fri Sep  2 20:26:53
2011
@@ -135,44 +135,4 @@ public class DateType extends AbstractTy
         if (bytes.remaining() != 8 && bytes.remaining() != 0)
             throw new MarshalException(String.format("Expected 8 or 0 byte long for date
(%d)", bytes.remaining()));
     }
-
-    public Class<Date> getType()
-    {
-        return Date.class;
-    }
-
-    public boolean isSigned()
-    {
-      return false;
-    }
-
-    public boolean isCaseSensitive()
-    {
-      return false;
-    }
-
-    public boolean isCurrency()
-    {
-      return false;
-    }
-
-    public int getPrecision(Date obj)
-    {
-      return -1;
-    }
-
-    public int getScale(Date obj)
-    {
-      return -1;
-    }
-
-    public int getJdbcType()
-    {
-      return Types.DATE;
-    }
-
-    public boolean needsQuotes()
-    {
-      return false;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DoubleType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DoubleType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DoubleType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/DoubleType.java Fri Sep  2 20:26:53
2011
@@ -99,45 +99,4 @@ public class DoubleType extends Abstract
         if (bytes.remaining() != 8 && bytes.remaining() != 0)
             throw new MarshalException(String.format("Expected 8 or 0 byte value for a double
(%d)", bytes.remaining()));
     }
-
-    public Class<Double> getType()
-    {
-        return Double.class;
-    }
-    
-    public boolean isSigned()
-    {
-      return true;
-    }
-
-    public boolean isCaseSensitive()
-    {
-      return false;
-    }
-
-    public boolean isCurrency()
-    {
-      return false;
-    }
-
-    public int getPrecision(Double obj) // see: http://teaching.idallen.org/dat2343/09f/notes/10FloatingPoint.htm
-    {
-      return 15;
-    }
-
-    public int getScale(Double obj) // see: http://teaching.idallen.org/dat2343/09f/notes/10FloatingPoint.htm
-    {
-      return 300;
-    }
-
-    public int getJdbcType()
-    {
-      return Types.DOUBLE;
-    }
-
-    public boolean needsQuotes()
-    {
-      return false;
-    }
-    
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/FloatType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/FloatType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/FloatType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/FloatType.java Fri Sep  2 20:26:53
2011
@@ -98,45 +98,4 @@ public class FloatType extends AbstractT
         if (bytes.remaining() != 4 && bytes.remaining() != 0)
             throw new MarshalException(String.format("Expected 4 or 0 byte value for a float
(%d)", bytes.remaining()));
     }
-
-    public Class<Float> getType()
-    {
-        return Float.class;
-    }
-
-    public boolean isSigned()
-    {
-      return true;
-    }
-
-    public boolean isCaseSensitive()
-    {
-      return false;
-    }
-
-    public boolean isCurrency()
-    {
-      return false;
-    }
-
-    public int getPrecision(Float obj) // see: http://teaching.idallen.org/dat2343/09f/notes/10FloatingPoint.htm
-    {
-      return 7;
-    }
-
-    public int getScale(Float obj) // see: http://teaching.idallen.org/dat2343/09f/notes/10FloatingPoint.htm
-    {
-      return 40;
-    }
-
-    public int getJdbcType()
-    {
-      return Types.FLOAT;
-    }
-
-    public boolean needsQuotes()
-    {
-      return false;
-    }
-    
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/IntegerType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/IntegerType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/IntegerType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/IntegerType.java Fri Sep  2 20:26:53
2011
@@ -164,44 +164,4 @@ public final class IntegerType extends A
     {
         // no invalid integers.
     }
-
-    public Class<BigInteger> getType()
-    {
-        return BigInteger.class;
-    }
-
-    public boolean isSigned()
-    {
-        return true;
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return false;
-    }
-
-    public boolean isCurrency()
-    {
-        return false;
-    }
-
-    public int getPrecision(BigInteger obj)
-    {
-        return obj.toString().length();
-    }
-
-    public int getScale(BigInteger obj)
-    {
-        return 0;
-    }
-
-    public int getJdbcType()
-    {
-        return Types.BIGINT;
-    }
-
-    public boolean needsQuotes()
-    {
-        return false;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LexicalUUIDType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LexicalUUIDType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LexicalUUIDType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LexicalUUIDType.java Fri Sep
 2 20:26:53 2011
@@ -27,7 +27,7 @@ import java.util.UUID;
 import org.apache.cassandra.utils.ByteBufferUtil;
 import org.apache.cassandra.utils.UUIDGen;
 
-public class LexicalUUIDType extends AbstractUUIDType
+public class LexicalUUIDType extends AbstractType<UUID>
 {
     public static final LexicalUUIDType instance = new LexicalUUIDType();
 
@@ -97,9 +97,4 @@ public class LexicalUUIDType extends Abs
             throw new MarshalException(String.format("LexicalUUID should be 16 or 0 bytes
(%d)", bytes.remaining()));
         // not sure what the version should be for this.
     }
-
-    public Class<UUID> getType()
-    {
-        return UUID.class;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java Fri
Sep  2 20:26:53 2011
@@ -72,44 +72,4 @@ public class LocalByPartionerType<T exte
     {
         throw new IllegalStateException("You shouldn't be validating this.");
     }
-
-    public Class<ByteBuffer> getType()
-    {
-        return ByteBuffer.class;
-    }
-
-    public boolean isSigned()
-    {
-        throw new UnsupportedOperationException();
-    }
-
-    public boolean isCaseSensitive()
-    {
-        throw new UnsupportedOperationException();
-    }
-
-    public boolean isCurrency()
-    {
-        throw new UnsupportedOperationException();
-    }
-
-    public int getPrecision(ByteBuffer obj)
-    {
-        throw new UnsupportedOperationException();
-    }
-
-    public int getScale(ByteBuffer obj)
-    {
-        throw new UnsupportedOperationException();
-    }
-
-    public int getJdbcType()
-    {
-        throw new UnsupportedOperationException();
-    }
-
-    public boolean needsQuotes()
-    {
-        throw new UnsupportedOperationException();
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LongType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LongType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LongType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/LongType.java Fri Sep  2 20:26:53
2011
@@ -105,44 +105,4 @@ public class LongType extends AbstractTy
         if (bytes.remaining() != 8 && bytes.remaining() != 0)
             throw new MarshalException(String.format("Expected 8 or 0 byte long (%d)", bytes.remaining()));
     }
-
-    public Class<Long> getType()
-    {
-        return Long.class;
-    }
-
-    public boolean isSigned()
-    {
-        return true;
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return false;
-    }
-
-    public boolean isCurrency()
-    {
-        return false;
-    }
-
-    public int getPrecision(Long obj)
-    {
-        return obj.toString().length();
-    }
-
-    public int getScale(Long obj)
-    {
-        return 0;
-    }
-
-    public int getJdbcType()
-    {
-        return Types.INTEGER;
-    }
-
-    public boolean needsQuotes()
-    {
-        return false;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/ReversedType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/ReversedType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/ReversedType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/ReversedType.java Fri Sep  2
20:26:53 2011
@@ -97,51 +97,11 @@ public class ReversedType<T> extends Abs
         return baseType.decompose(value);
     }
 
-    public Class<T> getType()
-    {
-        return baseType.getType();
-    }
-
     public String toString(T t)
     {
         return baseType.toString(t);
     }
 
-    public boolean isSigned()
-    {
-        return baseType.isSigned();
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return baseType.isCaseSensitive();
-    }
-
-    public boolean isCurrency()
-    {
-        return baseType.isCurrency();
-    }
-
-    public int getPrecision(T obj)
-    {
-        return baseType.getPrecision(obj);
-    }
-
-    public int getScale(T obj)
-    {
-        return baseType.getScale(obj);
-    }
-
-    public int getJdbcType()
-    {
-        return baseType.getJdbcType();
-    }
-
-    public boolean needsQuotes()
-    {
-        return baseType.needsQuotes();
-    }
-
     @Override
     public String toString()
     {

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/TimeUUIDType.java Fri Sep  2
20:26:53 2011
@@ -31,7 +31,7 @@ import org.apache.cassandra.utils.FBUtil
 import org.apache.cassandra.utils.UUIDGen;
 import org.apache.commons.lang.time.DateUtils;
 
-public class TimeUUIDType extends AbstractUUIDType
+public class TimeUUIDType extends AbstractType<UUID>
 {
     public static final TimeUUIDType instance = new TimeUUIDType();
 
@@ -200,9 +200,4 @@ public class TimeUUIDType extends Abstra
                 throw new MarshalException("Invalid version for TimeUUID type.");
         }
     }
-
-    public Class<UUID> getType()
-    {
-        return UUID.class;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UTF8Type.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UTF8Type.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UTF8Type.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UTF8Type.java Fri Sep  2 20:26:53
2011
@@ -192,44 +192,4 @@ public class UTF8Type extends AbstractTy
             return state == State.START;
         }
     }
-
-    public Class<String> getType()
-    {
-        return String.class;
-    }
-
-    public boolean isSigned()
-    {
-        return false;
-    }
-
-    public boolean isCaseSensitive()
-    {
-        return true;
-    }
-
-    public boolean isCurrency()
-    {
-        return false;
-    }
-
-    public int getPrecision(String obj)
-    {
-        return -1;
-    }
-
-    public int getScale(String obj)
-    {
-        return -1;
-    }
-
-    public int getJdbcType()
-    {
-        return Types.VARCHAR;
-    }
-
-    public boolean needsQuotes()
-    {
-        return true;
-    }
 }

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UUIDType.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UUIDType.java?rev=1164693&r1=1164692&r2=1164693&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UUIDType.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/marshal/UUIDType.java Fri Sep  2 20:26:53
2011
@@ -40,7 +40,7 @@ import org.apache.commons.lang.time.Date
  * 
  * @see "com.fasterxml.uuid.UUIDComparator"
  */
-public class UUIDType extends AbstractUUIDType
+public class UUIDType extends AbstractType<UUID>
 {
     public static final UUIDType instance = new UUIDType();
 
@@ -170,11 +170,6 @@ public class UUIDType extends AbstractUU
         return uuid.toString();
     }
 
-    public Class<UUID> getType()
-    {
-        return UUID.class;
-    }
-
     public void validate(ByteBuffer bytes)
     {
         if ((bytes.remaining() != 0) && (bytes.remaining() != 16))



Mime
View raw message