Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; /** * A Row is a touple consisting of a Key and a Column Slice. * * A Row may be used to hold the returned value from queries such as get_range_slices. * * @author Ran Tavory * * @param <N> Column name type * @param <V> Column value type * */ public interface Row<K, ...
103
github-java-corpus
2,012
package me.prettyprint.hector.api; /** * This is the Hector consistency level which is just a mirror of the thrift or avro consistency * levels. * @author: peter */ public enum HConsistencyLevel { ONE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUM; }
68
github-java-corpus
2,012
package me.prettyprint.cassandra.service; import static me.prettyprint.cassandra.utils.StringUtils.bytes; import static me.prettyprint.cassandra.utils.StringUtils.string; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static ...
8,332
github-java-corpus
2,012
package me.prettyprint.cassandra.service; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.net.UnknownHostException; import java.util.Arrays; import java.util.List; import me.prettyprint.cassandra.BaseEmbededServerSetupTest; import me.prettyprint.cassandra.model....
1,285
github-java-corpus
2,012
package me.prettyprint.cassandra.service; import static org.junit.Assert.assertEquals; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.serializers.StringSerializer; import org.apache.cassandra.thrift.Column...
839
github-java-corpus
2,012
package me.prettyprint.cassandra.service; import static org.junit.Assert.*; import me.prettyprint.hector.api.ClockResolution; import org.junit.Before; import org.junit.Test; public class CassandraHostConfiguratorTest { @Before public void setup() { } @Test public void testSimpleCassandraHostSetup() { ...
988
github-java-corpus
2,012
package me.prettyprint.cassandra.service; import static me.prettyprint.cassandra.utils.StringUtils.bytes; import static me.prettyprint.cassandra.utils.StringUtils.string; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static ...
1,874
github-java-corpus
2,012
package me.prettyprint.cassandra.connection; import static org.junit.Assert.assertEquals; import me.prettyprint.cassandra.BaseEmbededServerSetupTest; import me.prettyprint.cassandra.service.CassandraHost; import org.junit.Before; import org.junit.Test; public class ConcurrentHClientPoolTest extends BaseEmbededServer...
296
github-java-corpus
2,012
package me.prettyprint.cassandra.connection; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.mockito.Mockito; public abstract class BaseBalancingPolicyTest { protected List<ConcurrentHClientPool> pools = new ArrayList<ConcurrentHClientPool>(); protected ConcurrentHClient...
223
github-java-corpus
2,012
package me.prettyprint.cassandra.connection; import static org.junit.Assert.*; import java.util.Arrays; import java.util.HashSet; import me.prettyprint.cassandra.service.CassandraHost; import org.junit.Test; import org.mockito.Mockito; public class RoundRobinBalancingPolicyTest extends BaseBalancingPolicyTest { ...
554
github-java-corpus
2,012
package me.prettyprint.cassandra.connection; import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.HashSet; import me.prettyprint.cassandra.service.CassandraHost; import org.junit.Test; import org.mockito.Mockito; public class LeastActiveBalancingPolicyTest extends BaseBalancingPol...
278
github-java-corpus
2,012
package me.prettyprint.cassandra.connection; import static org.junit.Assert.*; import me.prettyprint.cassandra.BaseEmbededServerSetupTest; import me.prettyprint.cassandra.service.CassandraHost; import org.junit.Before; import org.junit.Test; public class HThriftClientTest extends BaseEmbededServerSetupTest { priv...
255
github-java-corpus
2,012
package me.prettyprint.cassandra.connection; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import me.prettyprint.cassandra.BaseEmbededServerSetupTest; import me.prettyprint.cassandra.service.CassandraHost; import me.prettyprint.cassandra.service.CassandraHostConfigurator; import m...
247
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import me.prettyprint.cassandra.serializers.LongSerializer; import org.junit.Test; /** * * @author Bozhidar Bozhanov * */ public class IntegerSerializerTest { @Test public void testConversions() { test(0); te...
130
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static me.prettyprint.cassandra.utils.StringUtils.bytes; import static org.junit.Assert.assertArrayEquals; import org.junit.Test; /** * @author Patricio Echague * @author Ran Tavory * */ public class BytesArraySerializerTest { @Test public void testConve...
165
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import java.io.UnsupportedEncodingException; import java.util.Arrays; import java.util.Collection; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; ...
218
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * * @author Bozhidar Bozhanov * */ public class BooleanSerializerTest { @Test public void testConversions() { test(true); test(false); test(null); } private void test(Boolea...
100
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import me.prettyprint.cassandra.serializers.LongSerializer; import org.junit.Test; public class LongSerializerTest { @Test public void testConversions() { test(0l); test(1l); test(-1l); test(Long.MAX_VALU...
118
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import java.util.Date; import org.junit.Test; /** * @author Jim Ancona */ public class DateSerializerTest { @Test public void testConversions() { test(new Date()); test(new Date(0l)); test(new Date(1l)); ...
137
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import java.io.Serializable; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import me.prettyprint.hector.api.Serializer; import org.junit.Assert; import org.junit.Tes...
577
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import java.io.Serializable; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import me.prettyprint.hector.api.exceptions.Hect...
588
github-java-corpus
2,012
package me.prettyprint.cassandra.serializers; import static org.junit.Assert.assertEquals; import java.util.UUID; import org.junit.Test; /** * * @author Bozhidar Bozhanov * */ public class UUIDSerializerTest { @Test public void testConversions() { test(UUID.randomUUID()); test(null); } private...
102
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createKeyspace; import static me.prettyprint.hector.api.factory.HFactory.createMutator; import static me.prettyprint.hector.api.factory.HFactory.getOrC...
501
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.ArrayList; import java.util.List; import java.nio.ByteBuffer; import junit.framework.Assert; import me.prettyprint.cassandra.serializers.LongSerializer; import me.prettyprint.cassandra.serializers.StringSerializer; import me.prettyprint.hector.api.beans.ColumnS...
295
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import junit.framework.Assert; import me.prettyprint.cassandra.serializers.ByteBufferSerializer; import me.prettyprint.cassandra.serializers.LongSerializer; import me.prettyp...
337
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createKeyspace; import static me.prettyprint.hector.api.factory.HFactory.createMutator; import static me.prettyprint.hector.api.factory.HFactory.getOrC...
872
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.cassandra.utils.StringUtils.bytes; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import me.prettyprint.cassandr...
499
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createKeyspace; import static me.prettyprint.hector.api.factory.HFactory.createMutator; import static me.prettyprint.hector.api.factory.HFactory.getOrC...
1,221
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static org.junit.Assert.assertEquals; import java.util.HashMap; import java.util.Map; import me.prettyprint.cassandra.service.OperationType; import me.prettyprint.hector.api.HConsistencyLevel; import org.junit.Before; import org.junit.Test; public class ConfigurableCo...
354
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createColumnQuery; import static me.prettyprint.hector.api.factory.HFactory.createKeyspace; import static me.prettyprint.hector.api.factory.HFactory.cr...
1,787
github-java-corpus
2,012
package me.prettyprint.cassandra.examples; import static me.prettyprint.hector.api.factory.HFactory.createKeyspace; import static me.prettyprint.hector.api.factory.HFactory.getOrCreateCluster; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.asse...
722
github-java-corpus
2,012
package me.prettyprint.cassandra.jndi; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.mockito.Mockito.mock; import java.io.IOException; import java.util.Hashtable; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.Name; ...
444
github-java-corpus
2,012
package me.prettyprint.cassandra.utils; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.UUID; import me.prettyprint.cassandra.service.clock.MicrosecondsClockResolution; import me.prettyprint.cassandra.service.clock.MicrosecondsSyncClockResolution; imp...
493
github-java-corpus
2,012
package me.prettyprint.cassandra.dao; import static org.junit.Assert.*; import javax.annotation.Resource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import me.prettyprin...
204
github-java-corpus
2,012
package me.prettyprint.cassandra; import java.io.IOException; import me.prettyprint.cassandra.connection.HConnectionManager; import me.prettyprint.cassandra.service.CassandraHostConfigurator; import me.prettyprint.cassandra.testutils.EmbeddedServerHelper; import org.apache.cassandra.config.ConfigurationException; im...
305
github-java-corpus
2,012
/* * Copyright (c) 2009 Openwave Systems Inc. All rights reserved. * * The copyright to the computer software herein is the property of * Openwave Systems Inc. The software may be used and/or copied only * with the written permission of Openwave Systems Inc. or in accordance * with the terms and conditions ...
343
github-java-corpus
2,012
package me.prettyprint.hector.api; import static org.junit.Assert.fail; import me.prettyprint.hector.api.ClockResolution; import me.prettyprint.hector.api.factory.HFactory; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Test @link {@link ClockResolutionTest} * ...
266
github-java-corpus
2,012
package me.prettyprint.hector.api; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createColumnQuery; import static me.prettyprint.hector.api.factory.HFactory.createCountQuery; import static me.prettyprint.hector.api.factory.HFactory.creat...
7,907
github-java-corpus
2,012
package me.prettyprint.hom; import java.beans.PropertyDescriptor; import me.prettyprint.hom.converters.Converter; public class PropertyMappingDefinition<T> { private PropertyDescriptor propDesc; private String colName; private Converter<T> converter; public PropertyMappingDefinition(PropertyDescriptor prop...
197
github-java-corpus
2,012
package me.prettyprint.hom; import java.util.Map; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import me.prettyprint.cassandra.service.CassandraHostConfigurator; import me.p...
569
github-java-corpus
2,012
package me.prettyprint.hom; import java.util.Map; import org.apache.commons.lang.StringUtils; import me.prettyprint.cassandra.service.CassandraHostConfigurator; /** * Config wrapper around the properties map required in the JPA * specification * * @author zznate * */ public class EntityManagerConfigurator { ...
590
github-java-corpus
2,012
package me.prettyprint.hom; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import javax.persistence.Column; import javax.persistence.DiscriminatorColumn; import javax.persis...
2,631
github-java-corpus
2,012
package me.prettyprint.hom; import java.util.Map; import javax.persistence.EntityManagerFactory; import javax.persistence.spi.PersistenceProvider; import javax.persistence.spi.PersistenceUnitInfo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CassandraPersistenceProvider implements Persisten...
258
github-java-corpus
2,012
package me.prettyprint.hom; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.io.Serializable; import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.nio.ByteBuffer; import java.util.Collection; import jav...
4,186
github-java-corpus
2,012
package me.prettyprint.hom; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import javax.persistence.DiscriminatorType; import javax.persistence.InheritanceType; import org.apache.commons.collections.collection.CompositeCollection; /** *...
1,188
github-java-corpus
2,012
package me.prettyprint.hom.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import me.prettyprint.hom.HectorObjectMapper; /** * Annotation for marking the method used to get "anonymous" pro...
128
github-java-corpus
2,012
package me.prettyprint.hom.annotations; import java.lang.annotation.Annotation; import java.util.HashSet; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.annotation.ClassPathScanningCandid...
330
github-java-corpus
2,012
package me.prettyprint.hom.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import me.prettyprint.hom.HectorObjectMapper; /** * Annotation for marking the method used to add "anonymous" prop...
128
github-java-corpus
2,012
package me.prettyprint.hom.converters; /** * Interface defining a custom object mapper conversion. For instance, from an * enum to a string. * * @param <T> Type of object to convert * * @author Todd Burruss */ public interface Converter<T> { /** * Convert Cassandra byte[] to Java type. * * @param...
151
github-java-corpus
2,012
package me.prettyprint.hom.converters; import me.prettyprint.cassandra.serializers.LongSerializer; import org.joda.time.DateTime; public class JodaTimeHectorConverter implements Converter<DateTime> { @Override public DateTime convertCassTypeToObjType(Class<DateTime> clazz, byte[] value) { return new DateTim...
110
github-java-corpus
2,012
package me.prettyprint.hom.converters; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hom.HectorObjectMapper; /** * Default converter used when none specified in {@link Column} annotation. Uses * Java reflection to determine the Java type to use. * * @author Todd Burruss */ public class Def...
178
github-java-corpus
2,012
package me.prettyprint.hom; import java.util.Set; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityTransaction; import javax.persistence.FlushModeType; import javax.persistence.LockModeType; import javax.persistence.Query; import me.prettyprint.hector.api.Keyspa...
1,820
github-java-corpus
2,012
package me.prettyprint.hom; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.Date; import java.util.Map; import java.util.UUID; import me.prettyprint.cassandra.serializers.Bo...
1,623
github-java-corpus
2,012
package me.prettyprint.hom.dupebean; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * Entity for testing duplication class <-> column family mapping. * * @author Todd Burruss */ @Entity @Table(name = "TestDupeColumnFamily") publi...
169
github-java-corpus
2,012
package me.prettyprint.hom.dupebean; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * Entity for testing duplication class <-> column family mapping. * * @author Todd Burruss */ @Entity @Table(name = "TestDupeColumnFamily") publi...
169
github-java-corpus
2,012
package me.prettyprint.hom; public enum Colors { BLUE("Blue"), RED("Red"), GREEN("Green") ; private final String name; Colors(String name) { this.name = name; } public String getName() { return name; } public static Colors getInstance(String name) { Colors[] tidArr = values(); ...
121
github-java-corpus
2,012
package me.prettyprint.hom; import java.util.LinkedList; import java.util.List; import me.prettyprint.cassandra.model.HColumnImpl; import me.prettyprint.cassandra.serializers.BytesArraySerializer; import me.prettyprint.cassandra.serializers.StringSerializer; import me.prettyprint.hector.api.beans.ColumnSlice; import ...
277
github-java-corpus
2,012
package me.prettyprint.hom; import me.prettyprint.hom.converters.Converter; public class ColorConverter implements Converter<Colors> { @Override public Colors convertCassTypeToObjType(Class<Colors> clazz, byte[] value) { return Colors.getInstance(new String(value)); } @Override public byte[] convertOb...
91
github-java-corpus
2,012
package me.prettyprint.hom.badbeans; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="MyMissingIdSetterBean") public class MyMissingIdSetterBean { @Id private String id; @Column(name="lp1") private long longPr...
114
github-java-corpus
2,012
package me.prettyprint.hom.badbeans; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import me.prettyprint.hom.beans.MyNonEntityTestBean; @Entity @Table(name="PurpleColumnFamily") public class MyBadTestBean extends MyNonEntityTestBean {...
214
github-java-corpus
2,012
package me.prettyprint.hom.annotations; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.Set; import me.prettyprint.hom.annotations.AnnotationScanner; import me.prettyprint.hom.beans.MyBlueTestBean; import me.prettyprint.hom.beans.MyCustomIdBean; import me.pret...
230
github-java-corpus
2,012
package me.prettyprint.hom; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.Map; import java.util.UUID...
1,503
github-java-corpus
2,012
package me.prettyprint.hom; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.Map; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import org.junit.Bef...
251
github-java-corpus
2,012
package me.prettyprint.hom; import static org.junit.Assert.assertEquals; import java.util.UUID; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hom.EntityManagerImpl; import me.prettyprint.hom.beans.MyCustomIdBean; import me.prettyprint.hom.beans.MyTestBean; import org.junit.Ignore; import org.juni...
366
github-java-corpus
2,012
package me.prettyprint.hom; import static org.junit.Assert.*; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence.PersistenceUnit; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test....
143
github-java-corpus
2,012
package me.prettyprint.hom.beans; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("Blue") public class MyBlueTestBean extends MyTestBean { }
41
github-java-corpus
2,012
package me.prettyprint.hom.beans; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="PurpleColumnFamily") public class MyPurpleTestBean extends MyNonEntityTestBean { @Id private String id; @Column(name="lp1") pr...
201
github-java-corpus
2,012
package me.prettyprint.hom.beans; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.UUID; import java.util.Map.Entry; import javax.persistence.Column; import javax.persistence.DiscriminatorColumn; import javax.persistence.DiscriminatorType; import jav...
1,045
github-java-corpus
2,012
package me.prettyprint.hom.beans; // don't annotate this one public class MyNonEntityTestBean { private long longProp3; public MyNonEntityTestBean() { super(); } public void setLongProp3(long longProp3) { this.longProp3 = longProp3; } public long getLongProp3() { return longProp3; } }
86
github-java-corpus
2,012
package me.prettyprint.hom.beans; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import me.prettyprint.hom.ColorConverter; import me.prettyprint.hom.Colors; @Entity @Table(name="CustomIdColumnFamily") public class MyCustomIdBean { //@...
166
github-java-corpus
2,012
package me.prettyprint.hom.beans; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("Red") public class MyRedTestBean extends MyTestBean { @Column(name="myCol1") private int c1; public int getC1() { return c1; } ...
95
github-java-corpus
2,012
package me.prettyprint.hom; import java.io.File; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; import me.prettyprint.cassandra.service.ThriftCfDef; import me.prettyprint.cassandra.service.ThriftKsDef; import me.prettyprint.hector.api...
871
github-java-corpus
2,012
package com.mycompany; import java.io.Serializable; public class MySerial implements Serializable { private int prop1; private long prop2; public MySerial(int prop1, long prop2) { super(); this.prop1 = prop1; this.prop2 = prop2; } public int getProp1() { return prop1; } public voi...
326
github-java-corpus
2,012
package com.mycompany; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.UUID; import java.util.Map.Entry; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import me.prettyprint.hom.ColorConverte...
350
github-java-corpus
2,012
package com.mycompany.furniture; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("table_desk") public class Desk extends Table { @Column(name="numDrawers") private int numDrawers; public int getNumDrawers() { retur...
101
github-java-corpus
2,012
package com.mycompany.furniture; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("couch") public class Couch extends Furniture { @Column(name="foldOutBed") private boolean foldOutBed; @Column(name="numCushions") priva...
166
github-java-corpus
2,012
package com.mycompany.furniture; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("chair") public class Chair extends Furniture { @Column(name="recliner") private boolean recliner; @Column(name="arms") private boolean ...
140
github-java-corpus
2,012
package com.mycompany.furniture; import javax.persistence.Column; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; @Entity @DiscriminatorValue("table") public class Table extends Furniture { @Column(name="extendable") private boolean extendable; @Column(name="shape") private St...
133
github-java-corpus
2,012
package com.mycompany.furniture; import javax.persistence.Column; import javax.persistence.DiscriminatorColumn; import javax.persistence.DiscriminatorType; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Inheritance; @Entity @javax.pe...
226
github-java-corpus
2,012
package com.mycompany.furniture; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import me.prettyprint.hector.api.Cluster; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.factory.HFact...
673
github-java-corpus
2,012
package com.mycompany; import java.util.UUID; import me.prettyprint.hector.api.Cluster; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.factory.HFactory; import me.prettyprint.hom.Colors; import me.prettyprint.hom.EntityManagerImpl; public class MainProg { public static void main(Stri...
225
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
476
github-java-corpus
2,012
/* * Copyright 2004-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
386
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,633
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
993
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
193
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
251
github-java-corpus
2,012
package org.apache.rahas; /* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
975
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
189
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,627
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
903
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,364
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
572
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
811
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,277
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,638
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
881
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
719
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
387
github-java-corpus
2,012
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
930