@Override public BackendEntry writePropertyKey(PropertyKey propertyKey) { TableBackendEntry entry = newBackendEntry(propertyKey); entry.column(HugeKeys.ID, propertyKey.id().asLong()); entry.column(HugeKeys.NAME, propertyKey.name()); entry.column(HugeKeys.DATA_TYPE, propertyKey.dataType().code()); entry.column(HugeKeys.CARDINALITY, propertyKey.cardinality().code()); entry.column(HugeKeys.PROPERTIES, this.toLongSet(propertyKey.properties())); this.writeUserdata(propertyKey, entry); entry.column(HugeKeys.STATUS, propertyKey.status().code()); return entry; }
@Override public BackendEntry writeIndexLabel(IndexLabel indexLabel) { TableBackendEntry entry = newBackendEntry(indexLabel); entry.column(HugeKeys.ID, indexLabel.id().asLong()); entry.column(HugeKeys.NAME, indexLabel.name()); entry.column(HugeKeys.BASE_TYPE, indexLabel.baseType().code()); entry.column(HugeKeys.BASE_VALUE, indexLabel.baseValue().asLong()); entry.column(HugeKeys.INDEX_TYPE, indexLabel.indexType().code()); entry.column(HugeKeys.FIELDS, this.toLongList(indexLabel.indexFields())); entry.column(HugeKeys.STATUS, indexLabel.status().code()); return entry; }
@Override public BackendEntry writeVertexLabel(VertexLabel vertexLabel) { TableBackendEntry entry = newBackendEntry(vertexLabel); entry.column(HugeKeys.ID, vertexLabel.id().asLong()); entry.column(HugeKeys.NAME, vertexLabel.name()); entry.column(HugeKeys.ID_STRATEGY, vertexLabel.idStrategy().code()); entry.column(HugeKeys.PROPERTIES, this.toLongSet(vertexLabel.properties())); entry.column(HugeKeys.PRIMARY_KEYS, this.toLongList(vertexLabel.primaryKeys())); entry.column(HugeKeys.NULLABLE_KEYS, this.toLongSet(vertexLabel.nullableKeys())); entry.column(HugeKeys.INDEX_LABELS, this.toLongSet(vertexLabel.indexLabels())); this.writeEnableLabelIndex(vertexLabel, entry); this.writeUserdata(vertexLabel, entry); entry.column(HugeKeys.STATUS, vertexLabel.status().code()); return entry; }
@Override public BackendEntry writeEdgeLabel(EdgeLabel edgeLabel) { TableBackendEntry entry = newBackendEntry(edgeLabel); entry.column(HugeKeys.ID, edgeLabel.id().asLong()); entry.column(HugeKeys.NAME, edgeLabel.name()); entry.column(HugeKeys.FREQUENCY, edgeLabel.frequency().code()); entry.column(HugeKeys.SOURCE_LABEL, edgeLabel.sourceLabel().asLong()); entry.column(HugeKeys.TARGET_LABEL, edgeLabel.targetLabel().asLong()); entry.column(HugeKeys.PROPERTIES, this.toLongSet(edgeLabel.properties())); entry.column(HugeKeys.SORT_KEYS, this.toLongList(edgeLabel.sortKeys())); entry.column(HugeKeys.NULLABLE_KEYS, this.toLongSet(edgeLabel.nullableKeys())); entry.column(HugeKeys.INDEX_LABELS, this.toLongSet(edgeLabel.indexLabels())); this.writeEnableLabelIndex(edgeLabel, entry); this.writeUserdata(edgeLabel, entry); entry.column(HugeKeys.STATUS, edgeLabel.status().code()); return entry; }
@Override public BackendEntry writePropertyKey(PropertyKey propertyKey) { TableBackendEntry entry = newBackendEntry(propertyKey); entry.column(HugeKeys.ID, propertyKey.id().asLong()); entry.column(HugeKeys.NAME, propertyKey.name()); entry.column(HugeKeys.DATA_TYPE, propertyKey.dataType().code()); entry.column(HugeKeys.CARDINALITY, propertyKey.cardinality().code()); entry.column(HugeKeys.PROPERTIES, this.toLongSet(propertyKey.properties())); this.writeUserdata(propertyKey, entry); entry.column(HugeKeys.STATUS, propertyKey.status().code()); return entry; }
@Override public BackendEntry writeIndexLabel(IndexLabel indexLabel) { TableBackendEntry entry = newBackendEntry(indexLabel); entry.column(HugeKeys.ID, indexLabel.id().asLong()); entry.column(HugeKeys.NAME, indexLabel.name()); entry.column(HugeKeys.BASE_TYPE, indexLabel.baseType().code()); entry.column(HugeKeys.BASE_VALUE, indexLabel.baseValue().asLong()); entry.column(HugeKeys.INDEX_TYPE, indexLabel.indexType().code()); entry.column(HugeKeys.FIELDS, this.toLongList(indexLabel.indexFields())); entry.column(HugeKeys.STATUS, indexLabel.status().code()); return entry; }
@Override public BackendEntry writeVertexLabel(VertexLabel vertexLabel) { TableBackendEntry entry = newBackendEntry(vertexLabel); entry.column(HugeKeys.ID, vertexLabel.id().asLong()); entry.column(HugeKeys.NAME, vertexLabel.name()); entry.column(HugeKeys.ID_STRATEGY, vertexLabel.idStrategy().code()); entry.column(HugeKeys.PROPERTIES, this.toLongSet(vertexLabel.properties())); entry.column(HugeKeys.PRIMARY_KEYS, this.toLongList(vertexLabel.primaryKeys())); entry.column(HugeKeys.NULLABLE_KEYS, this.toLongSet(vertexLabel.nullableKeys())); entry.column(HugeKeys.INDEX_LABELS, this.toLongSet(vertexLabel.indexLabels())); this.writeEnableLabelIndex(vertexLabel, entry); this.writeUserdata(vertexLabel, entry); entry.column(HugeKeys.STATUS, vertexLabel.status().code()); return entry; }
@Override public BackendEntry writeEdgeLabel(EdgeLabel edgeLabel) { TableBackendEntry entry = newBackendEntry(edgeLabel); entry.column(HugeKeys.ID, edgeLabel.id().asLong()); entry.column(HugeKeys.NAME, edgeLabel.name()); entry.column(HugeKeys.FREQUENCY, edgeLabel.frequency().code()); entry.column(HugeKeys.SOURCE_LABEL, edgeLabel.sourceLabel().asLong()); entry.column(HugeKeys.TARGET_LABEL, edgeLabel.targetLabel().asLong()); entry.column(HugeKeys.PROPERTIES, this.toLongSet(edgeLabel.properties())); entry.column(HugeKeys.SORT_KEYS, this.toLongList(edgeLabel.sortKeys())); entry.column(HugeKeys.NULLABLE_KEYS, this.toLongSet(edgeLabel.nullableKeys())); entry.column(HugeKeys.INDEX_LABELS, this.toLongSet(edgeLabel.indexLabels())); this.writeEnableLabelIndex(edgeLabel, entry); this.writeUserdata(edgeLabel, entry); entry.column(HugeKeys.STATUS, edgeLabel.status().code()); return entry; }