public abstract class DataFix extends Object
Constructor and Description |
---|
DataFix(Schema outputSchema,
boolean changesType) |
Modifier and Type | Method and Description |
---|---|
static <A,B> RewriteResult<A,B> |
checked(String name,
Type<A> type,
Type<B> newType,
(Typed<?>) -> Typed<?> function,
BitSet bitSet) |
protected <A,B> TypeRewriteRule |
convertUnchecked(String name,
Type<A> type,
Type<B> newType) |
protected <A> TypeRewriteRule |
fixTypeEverywhere(String name,
Type<A> type,
(DynamicOps<?>) -> (A) -> A function) |
protected <A,B> TypeRewriteRule |
fixTypeEverywhere(String name,
Type<A> type,
Type<B> newType,
(DynamicOps<?>) -> (A) -> B function) |
protected <A,B> TypeRewriteRule |
fixTypeEverywhere(String name,
Type<A> type,
Type<B> newType,
(DynamicOps<?>) -> (A) -> B function,
BitSet bitSet) |
protected <A,B> TypeRewriteRule |
fixTypeEverywhere(Type<A> type,
RewriteResult<A,B> view) |
protected <A> TypeRewriteRule |
fixTypeEverywhereTyped(String name,
Type<A> type,
(Typed<?>) -> Typed<?> function) |
protected <A> TypeRewriteRule |
fixTypeEverywhereTyped(String name,
Type<A> type,
(Typed<?>) -> Typed<?> function,
BitSet bitSet) |
protected <A,B> TypeRewriteRule |
fixTypeEverywhereTyped(String name,
Type<A> type,
Type<B> newType,
(Typed<?>) -> Typed<?> function) |
protected <A,B> TypeRewriteRule |
fixTypeEverywhereTyped(String name,
Type<A> type,
Type<B> newType,
(Typed<?>) -> Typed<?> function,
BitSet bitSet) |
protected Schema |
getInputSchema() |
protected Schema |
getOutputSchema() |
TypeRewriteRule |
getRule() |
int |
getVersionKey() |
protected abstract TypeRewriteRule |
makeRule() |
protected void |
onFail(Type<?> type) |
protected TypeRewriteRule |
writeAndRead(String name,
Type<?> type,
Type<?> newType) |
protected <A,B> TypeRewriteRule |
writeFixAndRead(String name,
Type<A> type,
Type<B> newType,
(Dynamic<?>) -> Dynamic<?> fix) |
public DataFix(Schema outputSchema, boolean changesType)
protected <A> TypeRewriteRule fixTypeEverywhere(String name, Type<A> type, (DynamicOps<?>) -> (A) -> A function)
protected <A,B> TypeRewriteRule convertUnchecked(String name, Type<A> type, Type<B> newType)
protected TypeRewriteRule writeAndRead(String name, Type<?> type, Type<?> newType)
protected <A,B> TypeRewriteRule writeFixAndRead(String name, Type<A> type, Type<B> newType, (Dynamic<?>) -> Dynamic<?> fix)
protected <A,B> TypeRewriteRule fixTypeEverywhere(String name, Type<A> type, Type<B> newType, (DynamicOps<?>) -> (A) -> B function)
protected <A,B> TypeRewriteRule fixTypeEverywhere(String name, Type<A> type, Type<B> newType, (DynamicOps<?>) -> (A) -> B function, BitSet bitSet)
protected <A> TypeRewriteRule fixTypeEverywhereTyped(String name, Type<A> type, (Typed<?>) -> Typed<?> function)
protected <A> TypeRewriteRule fixTypeEverywhereTyped(String name, Type<A> type, (Typed<?>) -> Typed<?> function, BitSet bitSet)
protected <A,B> TypeRewriteRule fixTypeEverywhereTyped(String name, Type<A> type, Type<B> newType, (Typed<?>) -> Typed<?> function)
protected <A,B> TypeRewriteRule fixTypeEverywhereTyped(String name, Type<A> type, Type<B> newType, (Typed<?>) -> Typed<?> function, BitSet bitSet)
public static <A,B> RewriteResult<A,B> checked(String name, Type<A> type, Type<B> newType, (Typed<?>) -> Typed<?> function, BitSet bitSet)
protected <A,B> TypeRewriteRule fixTypeEverywhere(Type<A> type, RewriteResult<A,B> view)
protected void onFail(Type<?> type)
public final int getVersionKey()
public TypeRewriteRule getRule()
protected abstract TypeRewriteRule makeRule()
protected Schema getInputSchema()
protected Schema getOutputSchema()