use of org.apache.carbondata.core.metadata.CarbonTableIdentifier in project carbondata by apache.
the class DictionaryColumnUniqueIdentifierTest method setUp.
@BeforeClass
public static void setUp() throws Exception {
CarbonTableIdentifier carbonTableIdentifier1 = new CarbonTableIdentifier("testDatabase", "testTable", "1");
CarbonTableIdentifier carbonTableIdentifier2 = new CarbonTableIdentifier("testDatabase", "testTable", "2");
Map<String, String> properties = new HashMap<>();
ColumnIdentifier columnIdentifier = new ColumnIdentifier("2", properties, DataType.STRING);
ColumnIdentifier columnIdentifier2 = new ColumnIdentifier("1", properties, DataType.INT);
dictionaryColumnUniqueIdentifier1 = new DictionaryColumnUniqueIdentifier(carbonTableIdentifier1, columnIdentifier, DataType.MAP);
dictionaryColumnUniqueIdentifier2 = new DictionaryColumnUniqueIdentifier(carbonTableIdentifier2, columnIdentifier2, DataType.MAP);
dictionaryColumnUniqueIdentifier3 = new DictionaryColumnUniqueIdentifier(carbonTableIdentifier2, columnIdentifier, DataType.MAP);
}
use of org.apache.carbondata.core.metadata.CarbonTableIdentifier in project carbondata by apache.
the class CarbonTableIdentifierTest method equalsTestWithDifferentTableId.
@Test
public void equalsTestWithDifferentTableId() {
CarbonTableIdentifier carbonTableIdentifierTest = new CarbonTableIdentifier("DatabseName", "tableName", "diffTableId");
Boolean res = carbonTableIdentifierTest.equals(carbonTableIdentifier);
assert (!res);
}
Aggregations