Dataset Viewer
Auto-converted to Parquet Duplicate
Unnamed: 0
int64
0
1.77k
func
stringlengths
14
223k
target
bool
2 classes
project
stringlengths
61
138
0
public class BerkeleyStorageSetup extends StorageSetup { public static ModifiableConfiguration getBerkeleyJEConfiguration(String dir) { return buildConfiguration() .set(STORAGE_BACKEND,"berkeleyje") .set(STORAGE_DIRECTORY, dir); } public static ModifiableConfigurati...
false
titan-berkeleyje_src_test_java_com_thinkaurelius_titan_BerkeleyStorageSetup.java
1
public class CassandraStorageSetup { public static final String CONFDIR_SYSPROP = "test.cassandra.confdir"; public static final String DATADIR_SYSPROP = "test.cassandra.datadir"; private static volatile Paths paths; private static final Logger log = LoggerFactory.getLogger(CassandraStorageSetup.class...
false
titan-cassandra_src_test_java_com_thinkaurelius_titan_CassandraStorageSetup.java
2
private static class Paths { private final String yamlPath; private final String dataPath; public Paths(String yamlPath, String dataPath) { this.yamlPath = yamlPath; this.dataPath = dataPath; } }
false
titan-cassandra_src_test_java_com_thinkaurelius_titan_CassandraStorageSetup.java
3
public abstract class DaemonRunner<S> { private static final Logger log = LoggerFactory.getLogger(DaemonRunner.class); private Thread killerHook; protected abstract String getDaemonShortName(); protected abstract void killImpl(final S stat) throws IOException; protected abstract S s...
false
titan-test_src_main_java_com_thinkaurelius_titan_DaemonRunner.java
4
killerHook = new Thread() { public void run() { killAndUnregisterHook(stat); } };
false
titan-test_src_main_java_com_thinkaurelius_titan_DaemonRunner.java
5
private static class StreamLogger extends Thread { private final BufferedReader reader; private static final Logger log = LoggerFactory.getLogger(StreamLogger.class); private StreamLogger(InputStream is) { this.reader = new BufferedReader(new InputStreamReader(i...
false
titan-test_src_main_java_com_thinkaurelius_titan_DaemonRunner.java
6
public class HBaseStatus { private static final Logger log = LoggerFactory.getLogger(HBaseStatus.class); private final File file; private final String version; private HBaseStatus(File file, String version) { Preconditions.checkNotNull(file); Preconditions.checkNotNull(ver...
false
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStatus.java
7
private static class HBasePidfileParseException extends Exception { private static final long serialVersionUID = 1L; public HBasePidfileParseException(String message) { super(message); } }
false
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStatus.java
8
public class HBaseStorageSetup { private static final Logger log = LoggerFactory.getLogger(HBaseStorageSetup.class); // hbase config for testing public static final String HBASE_PARENT_DIR_PROP = "test.hbase.parentdir"; private static final Pattern HBASE_SUPPORTED_VERSION_PATTERN = Pattern.compile("...
false
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java
9
Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { shutdownHBase(stat); } });
false
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java
10
private static class StreamLogger extends Thread { private final BufferedReader reader; private static final Logger log = LoggerFactory.getLogger(StreamLogger.class); private StreamLogger(InputStream is) { this.reader = new BufferedReader(new InputStreamReader(i...
false
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_HBaseStorageSetup.java
11
public class StorageSetup { //############ UTILITIES ############# public static final String getHomeDir(String subdir) { String homedir = System.getProperty("titan.testdir"); if (null == homedir) { homedir = "target" + File.separator + "db"; } if (subdir!=null && !...
false
titan-test_src_main_java_com_thinkaurelius_titan_StorageSetup.java
12
public class TestBed { static class A { private int c = 0; private final Object o; A(final Object o) { this.o = o; } public void inc() { c++; } } private static final void doSomethingExpensive(int milliseconds) { double d...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java
13
final ScheduledExecutorService exe = new ScheduledThreadPoolExecutor(1,new RejectedExecutionHandler() { @Override public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) { r.run(); } });
false
titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java
14
ScheduledFuture future = exe.scheduleWithFixedDelay(new Runnable() { AtomicInteger atomicInt = new AtomicInteger(0); @Override public void run() { try { for (int i=0;i<10;i++) { exe.submit(new Runnable() { ...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java
15
exe.submit(new Runnable() { private final int number = atomicInt.incrementAndGet(); @Override public void run() { try { Thread.sleep(150); ...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java
16
static class A { private int c = 0; private final Object o; A(final Object o) { this.o = o; } public void inc() { c++; } }
false
titan-test_src_main_java_com_thinkaurelius_titan_TestBed.java
17
public class TestByteBuffer { private static final int NUM = 1000; private static final double FRACTION = 0.2; private static final int ROUNDSIZE = 5; private static final int TRIALS = 5; private static final boolean CHECK_VALUE = true; private static final Random random = new Random(); p...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
18
static class ByteEntry implements Comparable<ByteEntry> { final ByteBuffer key; final ByteBuffer value; ByteEntry(ByteBuffer key, ByteBuffer value) { this.value = value; this.key = key; } @Override public int compareTo(ByteEntry byteEntry) {...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
19
static class ByteVertex extends Vertex { private final LongObjectMap<ConcurrentSkipListSet<ByteEntry>> tx; private final SortedSet<ByteEntry> set; ByteVertex(long id, LongObjectMap<ConcurrentSkipListSet<ByteEntry>> tx) { super(id); this.tx = tx; this.set...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
20
return Iterables.transform(Iterables.filter(set, new Predicate<ByteEntry>() { @Override public boolean apply(@Nullable ByteEntry entry) { return !CHECK_VALUE || entry.value.getInt(0) == value; } }), new Function<ByteEntry, Verte...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
21
}), new Function<ByteEntry, Vertex>() { @Override public Vertex apply(@Nullable ByteEntry entry) { return new ByteVertex(entry.key.getLong(8), tx); } });
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
22
static class Edge { private final Vertex start; private final Vertex end; private final String label; private final Map<String, Object> properties = new HashMap<String, Object>(); Edge(Vertex start, String label, Vertex end) { this.label = label; thi...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
23
static class EdgeVertex extends Vertex { private SortedSet<Edge> outEdges = new ConcurrentSkipListSet<Edge>(new Comparator<Edge>() { @Override public int compare(Edge e1, Edge e2) { return e1.getEnd().compareTo(e2.getEnd()); } }); EdgeVer...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
24
private SortedSet<Edge> outEdges = new ConcurrentSkipListSet<Edge>(new Comparator<Edge>() { @Override public int compare(Edge e1, Edge e2) { return e1.getEnd().compareTo(e2.getEnd()); } });
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
25
return Iterables.transform(Iterables.filter(outEdges, new Predicate<Edge>() { @Override public boolean apply(@Nullable Edge edge) { return !CHECK_VALUE || ((Integer) edge.getProperty("number")).intValue() == value; } }), new Fun...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
26
}), new Function<Edge, Vertex>() { @Override public Vertex apply(@Nullable Edge edge) { return edge.getEnd(); } });
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
27
static abstract class Vertex implements Comparable<Vertex> { protected final long id; Vertex(long id) { this.id = id; } @Override public int compareTo(Vertex vertex) { return Long.valueOf(id).compareTo(vertex.id); } public long getI...
false
titan-test_src_main_java_com_thinkaurelius_titan_TestByteBuffer.java
28
public abstract class AbstractCassandraBlueprintsTest extends TitanBlueprintsTest { @Override public void beforeSuite() { //Do nothing } @Override public TitanGraph openGraph(String uid) { return TitanFactory.open(getGraphConfig()); } @Override public boolean supportsM...
false
titan-cassandra_src_test_java_com_thinkaurelius_titan_blueprints_AbstractCassandraBlueprintsTest.java
29
public class BerkeleyBlueprintsTest extends TitanBlueprintsTest { private static final String DEFAULT_SUBDIR = "standard"; private static final Logger log = LoggerFactory.getLogger(BerkeleyBlueprintsTest.class); @Override public Graph generateGraph() { return generateGraph(DEFAULT...
false
titan-berkeleyje_src_test_java_com_thinkaurelius_titan_blueprints_BerkeleyBlueprintsTest.java
30
public class EmbeddedBlueprintsTest extends AbstractCassandraBlueprintsTest { @Override protected WriteConfiguration getGraphConfig() { return CassandraStorageSetup.getEmbeddedGraphConfiguration(getClass().getSimpleName()); } @Override public void extraCleanUp(String uid) throws BackendExc...
false
titan-cassandra_src_test_java_com_thinkaurelius_titan_blueprints_EmbeddedBlueprintsTest.java
31
public class HBaseBlueprintsTest extends TitanBlueprintsTest { @Override public void beforeSuite() { try { HBaseStorageSetup.startHBase(); } catch (IOException e) { throw new AssertionError(e); } } @AfterClass public static void stopHBase() { ...
false
titan-hbase-parent_titan-hbase-core_src_test_java_com_thinkaurelius_titan_blueprints_HBaseBlueprintsTest.java
32
public abstract class InMemoryBlueprintsTest extends TitanBlueprintsTest { public void testGraphTestSuite() throws Exception { this.stopWatch(); doTestSuite(new GraphTestSuite(this), ImmutableSet.of("testStringRepresentation","testDataTypeValidationOnProperties","testGraphDataPersists")); B...
false
titan-test_src_test_java_com_thinkaurelius_titan_blueprints_InMemoryBlueprintsTest.java
33
public class ThriftBlueprintsTest extends AbstractCassandraBlueprintsTest { @Override public void beforeSuite() { CassandraStorageSetup.startCleanEmbedded(); } @Override protected WriteConfiguration getGraphConfig() { return CassandraStorageSetup.getCassandraGraphConfiguration(getC...
false
titan-cassandra_src_test_java_com_thinkaurelius_titan_blueprints_ThriftBlueprintsTest.java
34
public abstract class TitanBlueprintsTest extends GraphTest { private static final Logger log = LoggerFactory.getLogger(TitanBlueprintsTest.class); private volatile String lastSeenMethodName; protected final Map<String, TitanGraph> openGraphs = new HashMap<String, TitanGraph>(); public...
false
titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TitanBlueprintsTest.java
35
public class TitanEdgeTestSuite extends EdgeTestSuite { public TitanEdgeTestSuite(final GraphTest graphTest) { super(graphTest); } }
false
titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TitanEdgeTestSuite.java
36
public class TitanGraphQueryTestSuite extends GraphQueryTestSuite { public TitanGraphQueryTestSuite(final GraphTest graphTest) { super(graphTest); } @Override public void testGraphQueryForVertices() { TitanGraph g = (TitanGraph) graphTest.generateGraph(); if (g.getRelationType...
false
titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TitanGraphQueryTestSuite.java
37
public class TitanSpecificBlueprintsTestSuite extends TestSuite { public TitanSpecificBlueprintsTestSuite(final GraphTest graphTest) { super(graphTest); } public void testVertexReattachment() { TransactionalGraph graph = (TransactionalGraph) graphTest.generateGraph(); Vertex a = gr...
false
titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TitanSpecificBlueprintsTestSuite.java
38
public class TransactionalTitanGraphTestSuite extends TransactionalGraphTestSuite { public TransactionalTitanGraphTestSuite(final GraphTest graphTest) { super(graphTest); } @Override public void testCompetingThreads() { TitanBlueprintsGraph graph = (TitanBlueprintsGraph) graphTest.gen...
false
titan-test_src_main_java_com_thinkaurelius_titan_blueprints_TransactionalTitanGraphTestSuite.java
39
public interface BaseVertexQuery<Q extends BaseVertexQuery<Q>> { /* --------------------------------------------------------------- * Query Specification * --------------------------------------------------------------- */ /** * Restricts this query to only those edges that point to the given...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_BaseVertexQuery.java
40
public enum Cardinality { /** * Only a single value may be associated with the given key. */ SINGLE, /** * Multiple values and duplicate values may be associated with the given key. */ LIST, /** * Multiple but distinct values may be associated with the given key. */...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_Cardinality.java
41
public interface EdgeLabel extends RelationType { /** * Checks whether this labels is defined as directed. * * @return true, if this label is directed, else false. */ public boolean isDirected(); /** * Checks whether this labels is defined as unidirected. * * @return tru...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_EdgeLabel.java
42
public interface Idfiable { /** * Unique identifier for this entity. * * @return Unique long id for this entity */ public long getLongId(); }
false
titan-core_src_main_java_com_thinkaurelius_titan_core_Idfiable.java
43
public class InvalidElementException extends TitanException { private final TitanElement element; /** * @param msg Exception message * @param element The invalid element causing the exception */ public InvalidElementException(String msg, TitanElement element) { super(msg); ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_InvalidElementException.java
44
public class InvalidIDException extends TitanException { public InvalidIDException(String msg) { super(msg); } public InvalidIDException(String msg, Throwable cause) { super(msg, cause); } public InvalidIDException(Throwable cause) { super(cause); } }
false
titan-core_src_main_java_com_thinkaurelius_titan_core_InvalidIDException.java
45
public enum Multiplicity { /** * The given edge label specifies a multi-graph, meaning that the multiplicity is not constrained and that * there may be multiple edges of this label between any given pair of vertices. * * @link http://en.wikipedia.org/wiki/Multigraph */ MULTI, /** ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_Multiplicity.java
46
public interface Namifiable { /** * Returns the unique name of this entity. * * @return Name of this entity. */ public String getName(); }
false
titan-core_src_main_java_com_thinkaurelius_titan_core_Namifiable.java
47
public enum Order { /** * Increasing */ ASC, /** * Decreasing */ DESC; /** * Modulates the result of a {@link Comparable#compareTo(Object)} execution for this specific * order, i.e. it negates the result if the order is {@link #DESC}. * * @param compare ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_Order.java
48
public interface PropertyKey extends RelationType { /** * Returns the data type for this property key. * The values of all properties of this type must be an instance of this data type. * * @return Data type for this property key. */ public Class<?> getDataType(); /** * The {...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_PropertyKey.java
49
public interface QueryDescription { /** * Returns a string representation of the entire query * @return */ @Override public String toString(); /** * Returns how many individual queries are combined into this query, meaning, how many * queries will be executed in one batch. ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_QueryDescription.java
50
public interface SubQuery { /** * Whether this query is fitted, i.e. whether the returned results must be filtered in-memory. * @return */ public boolean isFitted(); /** * Whether this query respects the sort order of parent query or requires sorting in-...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_QueryDescription.java
51
public class QueryException extends TitanException { private static final long serialVersionUID = 1L; /** * @param msg Exception message */ public QueryException(String msg) { super(msg); } /** * @param msg Exception message * @param cause Cause of the exception ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_QueryException.java
52
public interface RelationType extends TitanVertex, TitanSchemaType { /** * Checks if this relation type is a property key * * @return true, if this relation type is a property key, else false. * @see PropertyKey */ public boolean isPropertyKey(); /** * Checks if this relation...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_RelationType.java
53
public class SchemaViolationException extends TitanException { public SchemaViolationException(String msg) { super(msg); } public SchemaViolationException(String msg, Object... args) { super(String.format(msg,args)); } }
false
titan-core_src_main_java_com_thinkaurelius_titan_core_SchemaViolationException.java
54
public class Titan { /** * The version of this Titan graph database * * @return */ public static String version() { return TitanConstants.VERSION; } }
false
titan-core_src_main_java_com_thinkaurelius_titan_core_Titan.java
55
public class TitanConfigurationException extends TitanException { private static final long serialVersionUID = 4056436257763972423L; /** * @param msg Exception message */ public TitanConfigurationException(String msg) { super(msg); } /** * @param msg Exception message ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanConfigurationException.java
56
public interface TitanEdge extends TitanRelation, Edge { /** * Returns the edge label of this edge * * @return edge label of this edge */ public EdgeLabel getEdgeLabel(); /** * Returns the vertex for the specified direction. * The direction cannot be Direction.BOTH. * ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanEdge.java
57
public interface TitanElement extends Element, Idfiable, Removable { /** * Returns a unique identifier for this entity. * <p/> * The unique identifier may only be set when the transaction in which entity is created commits. * The <a href="https://github.com/thinkaurelius/titan/wiki/Graph-Config...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanElement.java
58
public class TitanException extends RuntimeException { private static final long serialVersionUID = 4056436257763972423L; /** * @param msg Exception message */ public TitanException(String msg) { super(msg); } /** * @param msg Exception message * @param cause Cause o...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanException.java
59
public class TitanFactory { private static final Logger log = LoggerFactory.getLogger(TitanFactory.class); /** * Opens a {@link TitanGraph} database. * <p/> * If the argument points to a configuration file, the configuration file is loaded to configure the Titan graph * If the ...
true
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanFactory.java
60
final Iterator<String> keysToMangle = Iterators.filter(configuration.getKeys(), new Predicate<String>() { @Override public boolean apply(String key) { if (null == key) return false; return p.matcher(key).matches(...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanFactory.java
61
public static class Builder extends UserModifiableConfiguration { private Builder() { super(GraphDatabaseConfiguration.buildConfiguration()); } /** * Configures the provided configuration path to the given value. * * @param path * @param valu...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanFactory.java
62
public interface TitanGraph extends TitanGraphTransaction, ThreadedTransactionalGraph { /* --------------------------------------------------------------- * Transactions and general admin * --------------------------------------------------------------- */ /** * Opens a new thread-independent ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanGraph.java
63
public interface TitanGraphQuery<Q extends TitanGraphQuery<Q>> extends GraphQuery { /* --------------------------------------------------------------- * Query Specification * --------------------------------------------------------------- */ /** * The returned element must have a property for ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanGraphQuery.java
64
public interface TitanGraphTransaction extends TransactionalGraph, KeyIndexableGraph, SchemaManager { /* --------------------------------------------------------------- * Modifications * --------------------------------------------------------------- */ /** * Creates a new vertex in the graph ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanGraphTransaction.java
65
public interface TitanIndexQuery { /** * Specifies the maxium number of elements to return * * @param limit * @return */ public TitanIndexQuery limit(int limit); /** * Specifies the offset of the query. Query results will be retrieved starting at the given offset. * @par...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanIndexQuery.java
66
public interface Result<V extends Element> { /** * Returns the element that matches the query * * @return */ public V getElement(); /** * Returns the score of the result with respect to the query (if available) * @return */ ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanIndexQuery.java
67
public interface TitanMultiVertexQuery<Q extends TitanMultiVertexQuery<Q>> extends BaseVertexQuery<Q> { /* --------------------------------------------------------------- * Query Specification * --------------------------------------------------------------- */ /** * Adds the given vertex to t...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanMultiVertexQuery.java
68
public interface TitanProperty extends TitanRelation { /** * Returns the property key of this property * * @return property key of this property * @see PropertyKey */ public PropertyKey getPropertyKey(); /** * Returns the vertex on which this property is incident. * ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanProperty.java
69
public interface TitanRelation extends TitanElement { /** * Establishes a unidirectional edge between this relation and the given vertex for the specified label. * The label must be defined {@link EdgeLabel#isUnidirected()}. * * @param label * @param vertex */ public void setPrope...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanRelation.java
70
public interface TitanTransaction extends TitanGraphTransaction { /* --------------------------------------------------------------- * Modifications * --------------------------------------------------------------- */ /** * Creates a new vertex in the graph with the given vertex id and the giv...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanTransaction.java
71
public interface TitanVertex extends TitanElement, Vertex { /* --------------------------------------------------------------- * Creation and modification methods * --------------------------------------------------------------- */ /** * Creates a new edge incident on this vertex. ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanVertex.java
72
public interface TitanVertexQuery<Q extends TitanVertexQuery<Q>> extends BaseVertexQuery<Q>, VertexQuery { /* --------------------------------------------------------------- * Query Specification (overwrite to merge BaseVertexQuery with Blueprint's VertexQuery) * --------------------------------------------...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TitanVertexQuery.java
73
public interface TransactionBuilder { /** * Makes the transaction read only. Any writes will cause an exception. * Read-only transactions do not have to maintain certain data structures and can hence be more efficient. * * @return */ public TransactionBuilder readOnly(); /** ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_TransactionBuilder.java
74
public interface VertexLabel extends TitanVertex, TitanSchemaType { /** * Whether vertices with this label are partitioned. * * @return */ public boolean isPartitioned(); /** * Whether vertices with this label are static, that is, immutable beyond the transaction * in which t...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_VertexLabel.java
75
public interface VertexList extends Iterable<TitanVertex> { /** * Returns the number of vertices in this list. * * @return Number of vertices in the list. */ public int size(); /** * Returns the vertex at a given position in the list. * * @param pos Position for which t...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_VertexList.java
76
public interface AttributeHandler<V> { /** * Verifies the given (not-null) attribute value is valid. * Throws an {@link IllegalArgumentException} if the value is invalid, * otherwise simply returns. * * @param value to verify */ public void verifyAttribute(V value); /** ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_AttributeHandler.java
77
public interface AttributeSerializer<V> extends AttributeHandler<V> { /** * Reads an attribute from the given ReadBuffer. * <p/> * It is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value. * * @param buffer ReadBuffer to read attribute fro...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_AttributeSerializer.java
78
public enum Cmp implements TitanPredicate { EQUAL { @Override public boolean isValidValueType(Class<?> clazz) { return true; } @Override public boolean isValidCondition(Object condition) { return true; } @Override public boo...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
79
EQUAL { @Override public boolean isValidValueType(Class<?> clazz) { return true; } @Override public boolean isValidCondition(Object condition) { return true; } @Override public boolean evaluate(Object value, Object condition)...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
80
NOT_EQUAL { @Override public boolean isValidValueType(Class<?> clazz) { return true; } @Override public boolean isValidCondition(Object condition) { return true; } @Override public boolean evaluate(Object value, Object condit...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
81
LESS_THAN { @Override public boolean isValidValueType(Class<?> clazz) { Preconditions.checkNotNull(clazz); return Comparable.class.isAssignableFrom(clazz); } @Override public boolean isValidCondition(Object condition) { return condition!=...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
82
LESS_THAN_EQUAL { @Override public boolean isValidValueType(Class<?> clazz) { Preconditions.checkNotNull(clazz); return Comparable.class.isAssignableFrom(clazz); } @Override public boolean isValidCondition(Object condition) { return condi...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
83
GREATER_THAN { @Override public boolean isValidValueType(Class<?> clazz) { Preconditions.checkNotNull(clazz); return Comparable.class.isAssignableFrom(clazz); } @Override public boolean isValidCondition(Object condition) { return conditio...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
84
GREATER_THAN_EQUAL { @Override public boolean isValidValueType(Class<?> clazz) { Preconditions.checkNotNull(clazz); return Comparable.class.isAssignableFrom(clazz); } @Override public boolean isValidCondition(Object condition) { return co...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Cmp.java
85
public enum Contain implements TitanPredicate { /** * Whether an element is in a collection */ IN { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(isValidCondition(condition), "Invalid condition provided: %s", condition); ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Contain.java
86
IN { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(isValidCondition(condition), "Invalid condition provided: %s", condition); Collection col = (Collection) condition; return col.contains(value); } ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Contain.java
87
NOT_IN { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(isValidCondition(condition), "Invalid condition provided: %s", condition); Collection col = (Collection) condition; return !col.contains(value); } ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Contain.java
88
public class Decimal extends AbstractDecimal { public static final int DECIMALS = 3; public static final Decimal MIN_VALUE = new Decimal(minDoubleValue(DECIMALS)); public static final Decimal MAX_VALUE = new Decimal(maxDoubleValue(DECIMALS)); private Decimal() {} public Decimal(double value) { ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Decimal.java
89
public static class DecimalSerializer extends AbstractDecimalSerializer<Decimal> { public DecimalSerializer() { super(DECIMALS, Decimal.class); } @Override protected Decimal construct(long format, int decimals) { assert decimals==DECIMALS; return...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Decimal.java
90
public interface Duration extends Comparable<Duration> { /** * Returns the length of this duration in the given {@link TimeUnit}. * * @param unit * @return */ public long getLength(TimeUnit unit); /** * Whether this duration is of zero length. * @return */ publi...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Duration.java
91
public enum Geo implements TitanPredicate { /** * Whether the intersection between two geographic regions is non-empty */ INTERSECT { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(condition instanceof Geoshape); ...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
92
INTERSECT { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(condition instanceof Geoshape); if (value == null) return false; Preconditions.checkArgument(value instanceof Geoshape); return ((Geoshape) valu...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
93
DISJOINT { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(condition instanceof Geoshape); if (value == null) return false; Preconditions.checkArgument(value instanceof Geoshape); return ((Geoshape) value...
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
94
WITHIN { @Override public boolean evaluate(Object value, Object condition) { Preconditions.checkArgument(condition instanceof Geoshape); if (value == null) return false; Preconditions.checkArgument(value instanceof Geoshape); return ((Geoshape) value)....
false
titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geo.java
End of preview. Expand in Data Studio

Dataset Card for "titan_0_5_1"

More Information needed

Downloads last month
5