Search in sources :

Example 6 with Key

use of com.cinchapi.concourse.validate.Keys.Key in project concourse by cinchapi.

the class KeysTest method testParseFunctionKey.

@Test
public void testParseFunctionKey() {
    String input = "age | avg";
    Key key = Keys.parse(input);
    Assert.assertEquals(KeyType.FUNCTION_KEY, key.type());
}
Also used : Key(com.cinchapi.concourse.validate.Keys.Key) Test(org.junit.Test)

Example 7 with Key

use of com.cinchapi.concourse.validate.Keys.Key in project concourse by cinchapi.

the class KeysTest method testParseIdentifierKey.

@Test
public void testParseIdentifierKey() {
    String input = "$id$";
    Key key = Keys.parse(input);
    Assert.assertEquals(KeyType.IDENTIFIER_KEY, key.type());
}
Also used : Key(com.cinchapi.concourse.validate.Keys.Key) Test(org.junit.Test)

Aggregations

Key (com.cinchapi.concourse.validate.Keys.Key)7 Function (com.cinchapi.ccl.type.Function)3 IndexFunction (com.cinchapi.ccl.type.function.IndexFunction)3 KeyConditionFunction (com.cinchapi.ccl.type.function.KeyConditionFunction)3 KeyRecordsFunction (com.cinchapi.ccl.type.function.KeyRecordsFunction)3 TemporalFunction (com.cinchapi.ccl.type.function.TemporalFunction)3 TObject (com.cinchapi.concourse.thrift.TObject)3 KeyType (com.cinchapi.concourse.validate.Keys.KeyType)3 ImmutableSet (com.google.common.collect.ImmutableSet)3 AbstractSet (java.util.AbstractSet)3 ArrayDeque (java.util.ArrayDeque)3 HashMap (java.util.HashMap)3 LinkedHashMap (java.util.LinkedHashMap)3 LinkedHashSet (java.util.LinkedHashSet)3 AdHocIterator (com.cinchapi.common.base.AdHocIterator)2 ArrayBuilder (com.cinchapi.common.base.ArrayBuilder)2 Reflection (com.cinchapi.common.reflect.Reflection)2 Constants (com.cinchapi.concourse.Constants)2 Link (com.cinchapi.concourse.Link)2 Calculations (com.cinchapi.concourse.server.calculate.Calculations)2